[fix] server safety

This commit is contained in:
kwaroran
2023-12-02 23:49:25 +09:00
parent 05b216a611
commit b7ba655979

View File

@@ -104,6 +104,9 @@ export async function SaveLocalBackup(){
continue
}
await writer.write(key, await forageStorage.getItem(key))
if(forageStorage.isAccount){
await sleep(1000)
}
}
}
@@ -174,6 +177,9 @@ export async function LoadLocalBackup(){
await forageStorage.setItem('assets/' + name, data)
}
await sleep(10)
if(forageStorage.isAccount){
await sleep(1000)
}
}
}
reader.readAsArrayBuffer(file)