mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: ts warning
This commit is contained in:
@@ -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 = `
|
||||
<span class="animate-pulse">Loading...</span>
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user