diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index 28c9793d..ef1001aa 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -262,7 +262,7 @@ export async function saveDb(){ let gotChannel = false const sessionID = v4() let channel:BroadcastChannel - if(BroadcastChannel){ + if(window.BroadcastChannel){ channel = new BroadcastChannel('risu-db') } if(channel){