From bdf9c7510f1a9712fc6ad9b4d828b81848a48e95 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 19 Jun 2017 09:44:14 +0200 Subject: [PATCH] Added include.js for testing detection --- include.js | 2 ++ index.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 include.js diff --git a/include.js b/include.js new file mode 100644 index 0000000..cc3de8e --- /dev/null +++ b/include.js @@ -0,0 +1,2 @@ +const domain = window.location.hostname === "tbmcplugins.github.io" ? "server.figytuna.com:8080" : "localhost:8080"; +console.log("Backend: " + domain); diff --git a/index.html b/index.html index 6024f7f..57fbe96 100644 --- a/index.html +++ b/index.html @@ -4,10 +4,10 @@ + -
- Log in using Discord +