From 69b64283fb9891644a1517cee83bb78835019efc Mon Sep 17 00:00:00 2001 From: nodemixaholic Date: Sun, 31 Mar 2024 21:20:37 +0000 Subject: [PATCH] Update 'frontend.js' --- frontend.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend.js b/frontend.js index b6baeb0..0113ec2 100644 --- a/frontend.js +++ b/frontend.js @@ -295,22 +295,6 @@ function exec(jsCode) { Function(js)() } -function fetchTextFromURL(url, callback) { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (xhr.readyState === XMLHttpRequest.DONE) { - if (xhr.status === 200) { - callback(xhr.responseText); - } else { - console.error('Error fetching text. Status code:', xhr.status); - callback(null); - } - } - }; - xhr.open('GET', url, true); - xhr.send(); -} - function readInternetText(url) { @@ -328,6 +312,7 @@ function readInternetText(url) { function requir3(jsURL) { let req = readInternetText(jsURL); + console.log(req) exec(req); }