Ben há 11 meses atrás
pai
commit
7367d3b112
1 ficheiros alterados com 5 adições e 0 exclusões
  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) => {