Index: lib/notificationHelper.js |
=================================================================== |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -37,7 +37,7 @@ |
let canUseChromeNotifications = (function() |
{ |
let info = require("info"); |
- if (info.platform == "chromium" && "notifications" in chrome) |
+ if (typeof chrome == "object" && "notifications" in chrome) |
{ |
if (navigator.platform.indexOf("Linux") == -1) |
return true; |