mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
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:
@@ -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'
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user