adjust webpack & files

This commit is contained in:
Gabe Yuan
2023-08-09 16:30:08 +08:00
parent 7c50ff146f
commit 2ec95ee3a3
34 changed files with 93726 additions and 5358 deletions

View File

@@ -92,15 +92,21 @@ export const fetchData = async (
// 发送请求
if (!res) {
if (isGm) {
if (useUnsafe) {
res = await window.unsafeWindow.fetch(input, init);
} else {
res = await fetchGM(input, init);
}
if (isGm && !useUnsafe) {
res = await fetchGM(input, init);
} else {
res = await fetch(input, init);
}
// if (isGm) {
// if (useUnsafe) {
// // res = await window.unsafeWindow.fetch(input, init);
// res = await fetch(input, init);
// } else {
// res = await fetchGM(input, init);
// }
// } else {
// res = await fetch(input, init);
// }
}
if (!res?.ok) {