Fix BroadcastChannel reference in globalApi.ts

This commit is contained in:
kwaroran
2024-04-08 23:51:04 +09:00
parent 20b268aa1b
commit def1b5f788

View File

@@ -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){