Don't always claim we have notif support

Only if the browser has the Notification API
pull/2533/head
David Baker 2016-11-02 19:26:07 +00:00
parent 757604fd60
commit 6aba9f8eda
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export default class WebPlatform extends BasePlatform {
* notifications, otherwise false.
*/
supportsNotifications() : boolean {
return true;
return Boolean(global.Notification);
}
/**