Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3399935
D10129.id34103.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
338 B
Referenced Files
None
Subscribers
None
D10129.id34103.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
@@ -48,7 +48,7 @@
);
React.useEffect(() => {
- electron?.fetchDeviceToken();
+ electron?.fetchDeviceToken?.();
}, []);
React.useEffect(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 5:22 AM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2609978
Default Alt Text
D10129.id34103.diff (338 B)
Attached To
Mode
D10129: [web] Don't crash if electron.fetchDeviceToken not defined in useCreateDesktopPushSubscription
Attached
Detach File
Event Timeline
Log In to Comment