Skip to content

Commit ca62dc6

Browse files
committed
Check for window on messaging-compat
1 parent 4ccfc34 commit ca62dc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/messaging-compat/src/messaging-compat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export function isSupported(): boolean {
6868
*/
6969
function isWindowSupported(): boolean {
7070
return (
71+
typeof window !== 'undefined' &&
7172
isIndexedDBAvailable() &&
7273
areCookiesEnabled() &&
7374
'serviceWorker' in navigator &&

0 commit comments

Comments
 (0)