From 6a79b50348f6685b979453e4d8b9fa21f5aa8c2a Mon Sep 17 00:00:00 2001 From: cynic Date: Sun, 28 Mar 2021 03:27:43 -0400 Subject: [PATCH] fix catalog to reader GET query, remove domain hardcoding --- catalog/js/catalog.js | 4 ++-- reader/js/reader.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/catalog/js/catalog.js b/catalog/js/catalog.js index 2a7a9e6..3384dd3 100644 --- a/catalog/js/catalog.js +++ b/catalog/js/catalog.js @@ -19,7 +19,7 @@ function load() {

Last update: ?

\

\ Link:\ - reader\ + reader\

\ \ '; @@ -28,7 +28,7 @@ function load() { document.getElementById("titles").innerHTML = strCatalog; } } - xmlhttp.open("GET", "https://amangathing.ddns.net/db.json", true); + xmlhttp.open("GET", "/db.json", true); xmlhttp.send(); } diff --git a/reader/js/reader.js b/reader/js/reader.js index b6e81d1..ef3396a 100644 --- a/reader/js/reader.js +++ b/reader/js/reader.js @@ -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();