From bfbc3811edeecdf915cf8816d177ac27a3434d8a Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 02:28:12 +0900 Subject: [PATCH] fix loginId --- src/client/init.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);