Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://github.com/dimaguy/ImpostorHQ into main
Browse files Browse the repository at this point in the history
  • Loading branch information
AntINFINAit authored and AntINFINAit committed Nov 8, 2020
2 parents 48c98e6 + 3aa1a4d commit ffbd5b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ImpostorHQ.Dashboard/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ const MessageFlags =
window.onload = onload();
function onload() {
var autoapi = window.location.href.match(/\?apikey=(.*)/);
console.log(autoapi);
if (autoapi != null) {
document.getElementById("apikey").value = autoapi[1];
}
}

function connect() {
if (document.getElementById("apikey").value == null) {
console.log("Empty Api Key");
return;
};
var serverUrl;
var scheme = "ws";

Expand Down

0 comments on commit ffbd5b9

Please sign in to comment.