Steven Yan 3 vuotta sitten
vanhempi
commit
059fb517ee
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -17,10 +17,10 @@ document.addEventListener("visibilitychange", function () {
 
 var loadICP = function () {
   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 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.send();
     req.onreadystatechange = function () {