Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 21:23:41 +00:00
parent a29134ba7b
commit f09043c1ec

View file

@ -297,18 +297,6 @@ function exec(jsCode) {
function readInternetText(url) {
let xhttp = new XMLHttpRequest();
let response = ""
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
response = this.responseText
}
};
xhttp.open("GET", `${url}`, true);
xhttp.send();
return response
}
function readInternetText(url) {
var request = new XMLHttpRequest(); // Create a new XMLHttpRequest object
@ -323,9 +311,9 @@ function readInternetText(url) {
}
function requir3(jsURL) {
let req = readInternetText(jsURL);
console.log(req)
exec(req);
}