|
@@ -248,14 +248,3 @@ Object.defineProperty(document, 'visibilityState', {
|
|
|
return cachedVisibilityState
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-// Make notifications silent if the the current webContents is muted
|
|
|
-const NativeNotification = window.Notification
|
|
|
-class Notification extends NativeNotification {
|
|
|
- constructor (title, opts) {
|
|
|
- super(title, Object.assign({
|
|
|
- silent: remote.getCurrentWebContents().isAudioMuted()
|
|
|
- }, opts))
|
|
|
- }
|
|
|
-}
|
|
|
-window.Notification = Notification
|