From 29eb12015b9f019bcd62daa0c25a80f27561c60d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 16 Oct 2018 10:26:05 +0200 Subject: [PATCH] Logo and username removed when running at Master App --- TopSpace/CompanyLogo.js | 5 +++++ TopSpace/EndUser.js | 5 +++++ index.html | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/TopSpace/CompanyLogo.js b/TopSpace/CompanyLogo.js index a1972ef45..371c4ece4 100644 --- a/TopSpace/CompanyLogo.js +++ b/TopSpace/CompanyLogo.js @@ -27,6 +27,11 @@ function newCompanyLogo() { function initialize() { + if (window.EXECUTING_AT === 'Master App') { + currentLabel = ""; + return; + } + logo = new Image(); logo.onload = onImageLoad; diff --git a/TopSpace/EndUser.js b/TopSpace/EndUser.js index 82213cd5d..eb4699c47 100644 --- a/TopSpace/EndUser.js +++ b/TopSpace/EndUser.js @@ -24,6 +24,11 @@ function newEndUser() { function initialize() { + if (window.EXECUTING_AT === 'Master App') { + window.USER_LOGGED_IN = ""; + return; + } + let storedUser = window.localStorage.getItem('loggedInUser'); if (storedUser === null || storedUser === "") { diff --git a/index.html b/index.html index 92d8c0a37..3fb0174cb 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ window.TOP_MARGIN = 85; window.CANVAS_VISIBLE = true; window.URL_PREFIX = 'https://develop.advancedalgos.net/'; - //window.URL_PREFIX = 'http://localhost:1337/'; + window.URL_PREFIX = 'http://localhost:1337/'; loadAdvancedAlgosPlatform(); ">