Ben 11 сар өмнө
parent
commit
7367d3b112
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      js/info.js

+ 5 - 0
js/info.js

@@ -62,6 +62,11 @@ request = async (method, url, data = null, headers = {}, local) => {
             "body": data,
         }).then(res => res.text())
     }
+    return fetch(url, {
+        "method": method,
+        "headers": headers,
+        "body": data,
+    }).then(res => res.text())
 }
 
 getStringBetween = (string, needleStart, needleEnd, offsetStart = 0, offsetEnd = 0) => {