WebApp Loading all modules declared at Project Schema

This commit is contained in:
Luis Fernando Molina committed 2021-09-06 20:30:05 +02:00
1 parent ecc7b7d7b6
commit 373f0307d8
7 files changed
+82 -33

No files matched your search

+12 -2
View File
@@ -9,8 +9,18 @@ function newAppPostLoader() {
function start() {
try {
webApp = newWebApp()
webApp.initialize()
setupProjectsSchema()
function setupProjectsSchema() {
httpRequest(undefined, 'ProjectsSchema', onResponse)
function onResponse(err, file) {
PROJECTS_SCHEMA = JSON.parse(file)
webApp = newWebApp()
webApp.initialize()
}
}
} catch (err) {
console.log('[ERROR] err.stack = ' + err.stack)
}