Skip to content
Permalink
Browse files

Make macOS catalina use the default notification provider

  • Loading branch information...
Thomas101 committed Aug 28, 2019
1 parent bdbafa2 commit a5d1e022c5fcf2b7ee6ed9245015942a1239d505
@@ -4,13 +4,14 @@ import { OSX_APP_BUNDLE_ID } from 'shared/constants'
import uuid from 'uuid'
import { settingsStore } from 'stores/settings'
import { ipcRenderer } from 'electron'
import Platform from 'shared/Platform'
import {
WB_LIN_NOTIF_CLICK,
WB_LIN_NOTIF_PRESENT
} from 'shared/ipcEvents'

let MacNotification = null
if (process.platform === 'darwin') {
if (process.platform === 'darwin' && !Platform.isDarwinCatalina()) {
try {
MacNotification = window.appNodeModulesRequire('node-mac-notifier')
} catch (ex) {
@@ -1,11 +1,12 @@
import OSSettings from 'shared/Models/Settings/OSSettings'
import Platfrom from 'shared/Platform'

class NotificationPlatformSupport {
/* **************************************************************************/
// Properties
/* **************************************************************************/

get enhancedSupportDarwin () { return process.platform === 'darwin' }
get enhancedSupportDarwin () { return process.platform === 'darwin' && !Platfrom.isDarwinCatalina() }
get enhancedSupportLinux () { return process.platform === 'linux' }
get enhancedSupportWin32 () { return false }

0 comments on commit a5d1e02

Please sign in to comment.
You can’t perform that action at this time.