From 5dba03bd4c164be0853dc1c1ba4a4cbd46948e3e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 31 May 2018 10:14:16 +0200 Subject: [PATCH] Initial Values for Top Space variables --- TopSpace/CurrentBot.js | 4 ++++ TopSpace/CurrentProcess.js | 4 ++++ TopSpace/CurrentStartMode.js | 4 ++++ TopSpace/DevTeam.js | 4 ++++ TopSpace/EndUser.js | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/TopSpace/CurrentBot.js b/TopSpace/CurrentBot.js index 0ddd13cbb..a56484cd9 100644 --- a/TopSpace/CurrentBot.js +++ b/TopSpace/CurrentBot.js @@ -25,6 +25,10 @@ function newCurrentBot() { function initialize() { window.CURRENT_BOT = window.localStorage.getItem("currentBot"); + + if (window.DEV_TEAM === null) { + window.DEV_TEAM = "No Bot"; + } } function getContainer(point) { diff --git a/TopSpace/CurrentProcess.js b/TopSpace/CurrentProcess.js index 3f1c46b2d..e205e8938 100644 --- a/TopSpace/CurrentProcess.js +++ b/TopSpace/CurrentProcess.js @@ -25,6 +25,10 @@ function newCurrentProcess() { function initialize() { window.CURRENT_PROCESS = window.localStorage.getItem("currentProcess"); + + if (window.CURRENT_PROCESS === null) { + window.CURRENT_PROCESS = ""; + } } function getContainer(point) { diff --git a/TopSpace/CurrentStartMode.js b/TopSpace/CurrentStartMode.js index 6970a0964..b7c949ba8 100644 --- a/TopSpace/CurrentStartMode.js +++ b/TopSpace/CurrentStartMode.js @@ -25,6 +25,10 @@ function newCurrentStartMode() { function initialize() { window.CURRENT_START_MODE = window.localStorage.getItem("currentStartMode"); + + if (window.CURRENT_START_MODE === null) { + window.CURRENT_START_MODE = ""; + } } function getContainer(point) { diff --git a/TopSpace/DevTeam.js b/TopSpace/DevTeam.js index 478625e3f..74360ca2c 100644 --- a/TopSpace/DevTeam.js +++ b/TopSpace/DevTeam.js @@ -25,6 +25,10 @@ function newDevTeam() { function initialize() { window.DEV_TEAM = window.localStorage.getItem("devTeam"); + + if (window.DEV_TEAM === null) { + window.DEV_TEAM = "Not devTeam Member"; + } } function getContainer(point) { diff --git a/TopSpace/EndUser.js b/TopSpace/EndUser.js index 2154c3b63..72747adc6 100644 --- a/TopSpace/EndUser.js +++ b/TopSpace/EndUser.js @@ -25,6 +25,10 @@ function newEndUser() { function initialize() { window.USER_LOGGED_IN = window.localStorage.getItem("userName"); + + if (window.USER_LOGGED_IN === null) { + window.USER_LOGGED_IN = "Guest User"; + } } function getContainer(point) {