Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans authored May 26, 2024
1 parent 37f9ec6 commit 9cbd5b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions files/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ <h2>Visual Search</h2>
var datas;
function init() {
let linkToData;
if (window.location.origin === "https://its-just-nans.github.io") {
const domain = "https://rt.n4n5.dev";
if (window.location.origin === domain) {
linkToData = "./data/data.json";
} else {
linkToData = "https://its-just-nans.github.io/rt/data/data.json";
linkToData = `${domain}/data/data.json`;
}
makeRequest("GET", linkToData)
.then(function (response) {
Expand Down

0 comments on commit 9cbd5b6

Please sign in to comment.