Skip to content

Commit 6d50f5e

Browse files
author
Josep Sayol
committed
fix(messagin): Add check for Fetch API support
1 parent 657055d commit 6d50f5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/messaging/controllers/window-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ export default class WindowController extends ControllerInterface {
361361
return 'serviceWorker' in navigator &&
362362
'PushManager' in window &&
363363
'Notification' in window &&
364+
'fetch' in window &&
364365
ServiceWorkerRegistration.prototype
365366
.hasOwnProperty('showNotification') &&
366367
PushSubscription.prototype.hasOwnProperty('getKey');

0 commit comments

Comments
 (0)