Skip to content

Commit 233161d

Browse files
authored
Check if cookies are enabled (#886)
Messaging needs cookies to be enabled.
1 parent 3e806ca commit 233161d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/messaging/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export function isSupported(): boolean {
8585
*/
8686
function isWindowControllerSupported(): boolean {
8787
return (
88+
navigator.cookieEnabled &&
8889
'serviceWorker' in navigator &&
8990
'PushManager' in window &&
9091
'Notification' in window &&

0 commit comments

Comments
 (0)