Fix sessions
This commit is contained in:
@@ -324,8 +324,9 @@ export async function saveDb(){
|
|||||||
}
|
}
|
||||||
if(!gotChannel){
|
if(!gotChannel){
|
||||||
gotChannel = true
|
gotChannel = true
|
||||||
alertWait(language.activeTabChange)
|
alertNormalWait(language.activeTabChange).then(() => {
|
||||||
location.reload()
|
location.reload()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ import { writable } from "svelte/store"
|
|||||||
import { getDatabase } from "./database.svelte"
|
import { getDatabase } from "./database.svelte"
|
||||||
import { hubURL } from "../characterCards"
|
import { hubURL } from "../characterCards"
|
||||||
import localforage from "localforage"
|
import localforage from "localforage"
|
||||||
import { alertLogin, alertStore, alertWait } from "../alert"
|
import { alertLogin, alertNormalWait, alertStore, alertWait } from "../alert"
|
||||||
import { forageStorage, getUnpargeables } from "../globalApi.svelte"
|
import { forageStorage, getUnpargeables } from "../globalApi.svelte"
|
||||||
import { encodeRisuSaveLegacy } from "./risuSave"
|
import { encodeRisuSaveLegacy } from "./risuSave"
|
||||||
import { v4 } from "uuid"
|
import { v4 } from "uuid"
|
||||||
import { language } from "src/lang"
|
import { language } from "src/lang"
|
||||||
|
import { sleep } from "../util"
|
||||||
|
|
||||||
export const AccountWarning = writable('')
|
export const AccountWarning = writable('')
|
||||||
const risuSession = Date.now().toFixed(0)
|
const risuSession = Date.now().toFixed(0)
|
||||||
@@ -52,8 +53,10 @@ export class AccountStorage{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(json?.reloadSession){
|
if(json?.reloadSession){
|
||||||
alertWait(language.reloadSession)
|
alertNormalWait(language.activeTabChange).then(() => {
|
||||||
location.reload()
|
location.reload()
|
||||||
|
})
|
||||||
|
await sleep(100000000) // wait forever
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user