Steven Yan hace 3 años
padre
commit
059fb517ee
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -17,10 +17,10 @@ document.addEventListener("visibilitychange", function () {
 
 
 var loadICP = function () {
 var loadICP = function () {
   var url = new URL(document.location.href);
   var url = new URL(document.location.href);
-  if (/www.stevenapis.xyz/gi.test(url.hostname)) {
+  if (/stevenapis.xyz/gi.test(url.hostname)) {
     var a = document.createElement("a");
     var a = document.createElement("a");
     var req = new XMLHttpRequest();
     var req = new XMLHttpRequest();
-    req.open("GET", "https://www.stevenapis.xyz/index.json");
+    req.open("GET", "https://stevenapis.xyz/index.json");
     req.setRequestHeader("Content-type", "application/json");
     req.setRequestHeader("Content-type", "application/json");
     req.send();
     req.send();
     req.onreadystatechange = function () {
     req.onreadystatechange = function () {