Environment reaching the UI at the Platform

This commit is contained in:
Luis Fernando Molina committed 2021-10-25 12:55:50 +02:00
1 parent bd9fa1d162
commit 216dbbc7d2
5 files changed
+28 -7

No files matched your search

+12 -3
View File
@@ -4,7 +4,7 @@ function newAppPostLoader() {
const MODULE_NAME = 'Post Loader'
const ERROR_LOG = true
const logger = newWebDebugLog()
let thisObject = {
start: start
@@ -14,9 +14,18 @@ function newAppPostLoader() {
function start() {
try {
// autoSaveWhenClosingTheBrowser()
setupProjectsSchema()
setupEnvironment()
function setupEnvironment() {
httpRequest(undefined, 'Environment', onResponse)
function onResponse(err, file) {
UI.environment = JSON.parse(file)
setupProjectsSchema()
}
}
function setupProjectsSchema() {
httpRequest(undefined, 'ProjectsSchema', onResponse)