From 0eaec8b60bff57fd3ecf2f66aa3c70c7f9ce9327 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 29 Oct 2023 12:50:03 +0800 Subject: [PATCH] fix: ts warning --- src/utils/authProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/authProvider.ts b/src/utils/authProvider.ts index d9b91708..38511d41 100644 --- a/src/utils/authProvider.ts +++ b/src/utils/authProvider.ts @@ -8,11 +8,11 @@ import browser from 'webextension-polyfill' import { accessKey } from '~/logic/storage' -export const revokeAccessKey = () => { +export function revokeAccessKey() { accessKey.value = null } -export const grantAccessKey = (t: any, element: HTMLButtonElement): void => { +export function grantAccessKey(t: any, element: HTMLButtonElement): void { const originalInnerHTML = element.innerHTML element.innerHTML = ` Loading... @@ -22,7 +22,7 @@ export const grantAccessKey = (t: any, element: HTMLButtonElement): void => { const tip = t('auth.err_tip') fetch( - 'https://passport.bilibili.com/login/app/third?appkey=27eb53fc9058f8c3' + 'https://passport.bilibili.com/login/app/third?appkey=5fd5a7d8bfd9b0e6' + '&api=https%3A%2F%2Fwww.mcbbs.net%2Ftemplate%2Fmcbbs%2Fimage%2Fspecial_photo_bg.png&sign=04224646d1fea004e79606d3b038c84a', { method: 'GET',