diff --git a/src/client/init.ts b/src/client/init.ts index ffcfbb179a..268170fd30 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -35,7 +35,7 @@ import { makeHotkey } from '@client/scripts/hotkey'; import { search } from '@client/scripts/search'; import { isMobile } from '@client/scripts/is-mobile'; import { initializeSw } from '@client/scripts/initialize-sw'; -import { reload, reloadChannel } from '@client/scripts/unison-reload'; +import { reloadChannel } from '@client/scripts/unison-reload'; import { reactionPicker } from '@client/scripts/reaction-picker'; import { deleteLoginId } from '@client/scripts/login-id'; import { getAccountFromId } from '@client/scripts/get-account-from-id'; @@ -122,11 +122,11 @@ html.setAttribute('lang', lang); //#endregion //#region loginId -const params = new URLSearchParams(location.href); +const params = new URLSearchParams(location.search); const loginId = params.get('loginId'); if (loginId) { - const target = deleteLoginId(location.toString()); + const target = deleteLoginId(location.href); if (!$i || $i.id !== loginId) { const account = await getAccountFromId(loginId);