Update BroadcastChannel name in globalApi.ts

This commit is contained in:
kwaroran
2024-04-08 22:04:43 +09:00
parent aead67be97
commit 74385237ab

View File

@@ -261,7 +261,7 @@ export async function saveDb(){
})
let gotChannel = false
const sessionID = v4()
const channel = new BroadcastChannel('risu-db')
const channel = new BroadcastChannel('risu-save-channel')
channel.onmessage = async (ev) => {
if(ev.data === sessionID){
return