Skip to content

Commit 9a6f0db

Browse files
jsayoljshcrowthe
authored andcommitted
fix(messaging): Add check for Fetch API support (#79)
1 parent 657055d commit 9a6f0db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/messaging/controllers/window-controller.ts

+1
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)