Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3525259
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
Tue, Dec 24, 4:15 PM (5 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700449
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