[feat] add plain fetch

This commit is contained in:
kwaroran
2023-06-26 00:06:06 +09:00
parent c883d929dc
commit 742ac73aee
3 changed files with 5 additions and 4 deletions

View File

@@ -414,8 +414,7 @@ export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:stri
}
const urlHost = (new URL(url)).hostname
let forcePlainFetch = knownHostes.includes(urlHost) && (!isTauri)
let forcePlainFetch = (knownHostes.includes(urlHost) && (!isTauri)) || db.usePlainFetch
if(forcePlainFetch){
try {
let headers = arg.headers ?? {}