fix ts error

This commit is contained in:
lloydzhou
2024-09-30 01:30:20 +08:00
parent a50c282d01
commit 9be58f3eb4
9 changed files with 9 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ export function fetch(url: string, options?: RequestInit): Promise<any> {
})
.then((u: Function) => (unlisten = u));
const headers = {
const headers: Record<string, string> = {
Accept: "application/json, text/plain, */*",
"Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7",
"User-Agent": navigator.userAgent,