Merge pull request #6 from kurisufriend/main

fix catalog to reader GET query, remove domain hardcoding
main
zhet1c 4 years ago committed by GitHub
commit ce7fd5ac7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      catalog/js/catalog.js
  2. 2
      reader/js/reader.js

@ -19,7 +19,7 @@ function load() {
<p>Last update: ?</p>\ <p>Last update: ?</p>\
<p>\ <p>\
Link:\ Link:\
<a href="reader.html?id='+manga["id"]+'">reader</a>\ <a href="reader.html?manga='+manga["id"]+'">reader</a>\
</p>\ </p>\
</td>\ </td>\
</tr>'; </tr>';
@ -28,7 +28,7 @@ function load() {
document.getElementById("titles").innerHTML = strCatalog; document.getElementById("titles").innerHTML = strCatalog;
} }
} }
xmlhttp.open("GET", "https://amangathing.ddns.net/db.json", true); xmlhttp.open("GET", "/db.json", true);
xmlhttp.send(); xmlhttp.send();
} }

@ -238,7 +238,7 @@ xmlhttp.onreadystatechange = function () {
} }
} }
} }
xmlhttp.open("GET", "https://amangathing.ddns.net/db.json", true); xmlhttp.open("GET", "/db.json", true);
xmlhttp.send(); xmlhttp.send();

Loading…
Cancel
Save