Add ability to connect with settings from third-party backend

This commit is contained in:
Dan Sosedoff
2017-09-15 18:54:14 -05:00
parent f5f595ac02
commit 73816ff2d7
6 changed files with 96 additions and 3 deletions

View File

@@ -1204,6 +1204,15 @@ $(document).ready(function() {
initEditor();
addShortcutTooltips();
// Set session from the url
var reqUrl = new URL(window.location);
var sessionId = reqUrl.searchParams.get("session");
if (sessionId && sessionId != "") {
sessionStorage.setItem("session_id", sessionId);
window.history.pushState({}, document.title, window.location.pathname);
}
apiCall("get", "/connection", {}, function(resp) {
if (resp.error) {
connected = false;