diff --git a/js/notifications.js b/js/notifications.js index e5d37fa38075..e93d4569d82a 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -86,7 +86,7 @@ break; } - if (windows.config.polyfillNotifications) { + if (window.config.polyfillNotifications) { window.nodeNotifier.notify({ title: title, message: message, diff --git a/main.js b/main.js index 05daa139cf45..b6b51eb776f8 100644 --- a/main.js +++ b/main.js @@ -64,7 +64,6 @@ const loadLocale = require('./app/locale').load; let locale; - const WINDOWS_8 = '8.0.0'; const osRelease = os.release(); const polyfillNotifications = @@ -88,7 +87,7 @@ function prepareURL(pathSegments) { node_version: process.versions.node, hostname: os.hostname(), appInstance: process.env.NODE_APP_INSTANCE, - polyfillNotifications: polyfillNotifications, + polyfillNotifications: polyfillNotifications ? true : undefined, // for stringify() } }) }