This commit is contained in:
tamaina 2021-10-29 14:21:28 +09:00
parent 6009ebbff0
commit 66d38bfd90

View file

@ -8,7 +8,7 @@ import * as Misskey from 'misskey-js';
import { SwMessage, swMessageOrderType } from './types'; import { SwMessage, swMessageOrderType } from './types';
import { getAcct } from '@/misc/acct'; import { getAcct } from '@/misc/acct';
import { getAccountFromId } from '@client/scripts/get-account-from-id'; import { getAccountFromId } from '@client/scripts/get-account-from-id';
import { appendLoginId } from '@client/scripts/login-id'; import { getUrlWithLoginId } from '@client/scripts/login-id';
export const cli = new Misskey.api.APIClient({ origin, fetch: (...args) => fetch(...args) }); export const cli = new Misskey.api.APIClient({ origin, fetch: (...args) => fetch(...args) });
@ -56,7 +56,7 @@ export async function openClient(order: swMessageOrderType, url: string, loginId
return client; return client;
} }
return self.clients.openWindow(appendLoginId(url, loginId)); return self.clients.openWindow(getUrlWithLoginId(url, loginId));
} }
export async function findClient() { export async function findClient() {