1
0
forked from mirror/misskey

fix loginId

This commit is contained in:
tamaina 2021-09-21 02:28:12 +09:00
parent e78a95e176
commit bfbc3811ed

View File

@ -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);