From 6aba9f8edaa749247917002fc7a7b83b6e859731 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 2 Nov 2016 19:26:07 +0000 Subject: [PATCH] Don't always claim we have notif support Only if the browser has the Notification API --- src/vector/platform/WebPlatform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js index b3274021fd..3477fc8bc1 100644 --- a/src/vector/platform/WebPlatform.js +++ b/src/vector/platform/WebPlatform.js @@ -68,7 +68,7 @@ export default class WebPlatform extends BasePlatform { * notifications, otherwise false. */ supportsNotifications() : boolean { - return true; + return Boolean(global.Notification); } /**