mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
fix loginId
This commit is contained in:
parent
e78a95e176
commit
bfbc3811ed
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue