Skip to content

Commit

Permalink
fix(messaging): Add check for Fetch API support (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayol authored and jshcrowthe committed Jun 28, 2017
1 parent 657055d commit 9a6f0db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/messaging/controllers/window-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ export default class WindowController extends ControllerInterface {
return 'serviceWorker' in navigator &&
'PushManager' in window &&
'Notification' in window &&
'fetch' in window &&
ServiceWorkerRegistration.prototype
.hasOwnProperty('showNotification') &&
PushSubscription.prototype.hasOwnProperty('getKey');
Expand Down

0 comments on commit 9a6f0db

Please sign in to comment.