diff --git a/src/client/sw/operations.ts b/src/client/sw/operations.ts index b0f4f50f53..369f24beb2 100644 --- a/src/client/sw/operations.ts +++ b/src/client/sw/operations.ts @@ -10,7 +10,7 @@ import { getAcct } from '@/misc/acct'; import { getAccountFromId } from '@client/scripts/get-account-from-id'; import { appendLoginId } from '@client/scripts/login-id'; -export const apiFetch = new Misskey.api.APIClient({ origin, fetch }); +export const apiFetch = new Misskey.api.APIClient({ origin }); export async function api(endpoint: E, userId: string, options?: Misskey.Endpoints[E]['req']) { const account = await getAccountFromId(userId);