Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3248067
D10351.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
402 B
Referenced Files
None
Subscribers
None
D10351.diff
View Options
diff --git a/web/push-notif/push-notifs-handler.js b/web/push-notif/push-notifs-handler.js
--- a/web/push-notif/push-notifs-handler.js
+++ b/web/push-notif/push-notifs-handler.js
@@ -102,7 +102,7 @@
}
const workerRegistration = await navigator.serviceWorker?.ready;
- if (!workerRegistration) {
+ if (!workerRegistration || !workerRegistration.pushManager) {
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 8:26 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496925
Default Alt Text
D10351.diff (402 B)
Attached To
Mode
D10351: Check against 'workerRegistration.pushManager' before creating push subscription on web
Attached
Detach File
Event Timeline
Log In to Comment