Fix regression in notification deliverability (#1659)

* Fix regression in notification deliverability. Closes #1641
    * Only master tabs were showing notifications
* Only play the notification sound in the master tab
* Clears notification form after notification submission
* Add notification to admin notification list after creation. Closes #1651 
* Remove `console.log` statements from minified production JS
This commit is contained in:
Kevin Chung
2020-09-20 03:05:49 -04:00
committed by GitHub
parent 722d45c73b
commit 1be3659996
41 changed files with 237 additions and 464 deletions

View File

@@ -123,7 +123,12 @@ function getJSConfig(root, type, entries, mode) {
new UglifyJsPlugin({
cache: true,
parallel: true,
sourceMap: true
uglifyOptions: {
compress: {
// Remove console.log in production
drop_console: mode === 'production'
},
},
}),
],
},