Fix location

This commit is contained in:
Norbi Peti 2018-05-28 18:25:12 +02:00 committed by GitHub
parent eb0eeebfd1
commit 9f8f5136f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,2 @@
const domain = window.location.hostname === "tbmcplugins.github.io" ? "server.figytuna.com:8080" : "localhost:8080";
const domain = window.location.hostname !== "localhost" ? "server.figytuna.com" : "localhost:8080";
console.log("Backend: " + domain);