Added include.js for testing detection

This commit is contained in:
Norbi Peti 2017-06-19 09:44:14 +02:00
parent c5f44f4a36
commit bdf9c7510f
2 changed files with 4 additions and 2 deletions

2
include.js Normal file
View file

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

View file

@ -4,10 +4,10 @@
<HTML> <HTML>
<HEAD> <HEAD>
<LINK href="./custom.css" rel="stylesheet" type="text/css"> <LINK href="./custom.css" rel="stylesheet" type="text/css">
<script src="include.js"></script>
</HEAD> </HEAD>
<div id="discordLogin"> <div id="logins">
<a href="https://discordapp.com/oauth2/authorize?client_id=226443037893591041&response_type=code&state=somerandomstate&scope=identify&redirect_uri=https%3A%2F%2Fserver.figytuna.com%3A8080%2Flogin%3Ftype%3Ddiscord">Log in using Discord</a>
</div> </div>
<div id="buttonTitle"> <div id="buttonTitle">