From 6ee9a152d4e60a950c7c756c07a15265989eb54c Mon Sep 17 00:00:00 2001 From: kwaroran Date: Tue, 2 Jul 2024 02:30:17 +0900 Subject: [PATCH] fix: add error time --- src/ts/drive/drive.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ts/drive/drive.ts b/src/ts/drive/drive.ts index 7fc17c37..0aa4ee39 100644 --- a/src/ts/drive/drive.ts +++ b/src/ts/drive/drive.ts @@ -95,9 +95,12 @@ export async function checkDriverInit() { return false } } catch (error) { - location.search = '' console.error(error) alertError(`Backup Error: ${error}`) + const currentURL = new URL(location.href) + currentURL.search = '' + window.history.replaceState( {} , "", currentURL.href ); + await sleep(100000) return false } }