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 } }