Catching of scripts problem solution.

This commit is contained in:
Luis Fernando Molina committed 2019-02-13 12:38:37 +01:00
1 parent 8953933938
commit 77d867650a
3 files changed
+12 -3

No files matched your search

+6 -1
View File
@@ -107,10 +107,15 @@
];
let downloadedCounter = 0;
let versionParam = window.canvasApp.version;
if (versionParam === undefined) { versionParam = ''; }
else {
versionParam = '?' + versionParam;
}
for (let i = 0; i < modulesArray.length; i++) {
let path = window.canvasApp.urlPrefix + modulesArray[i];
let path = window.canvasApp.urlPrefix + modulesArray[i] + versionParam;
REQUIREJS([path], onRequired);
+4
View File
@@ -15,11 +15,15 @@
<body id="body" style="margin: 0px; padding: 0px; border: 0px; overflow:hidden;" onresize="window.canvasApp.eventHandler.raiseEvent('Browser Resized');" onload="
window.canvasApp = {
version: '1.0.0', // This is used to avoid catching problems at the browser level.
sessionToken: '',
executingAt: 'Master App',
visible: true,
topMargin: 85,
urlPrefix: 'http://localhost:1337/',
graphQL: {
masterAppApiUrl: 'http://localhost:4100/graphql',
},
context: {}
};
+2 -2
View File
@@ -183,7 +183,6 @@ function onBrowserRequest(request, response) {
let htmlResponse;
let requestParameters = request.url.split("/");
if (requestParameters[1].indexOf("index.html") >= 0) {
/*
@@ -201,7 +200,8 @@ function onBrowserRequest(request, response) {
return;
}
requestParameters = request.url.split("?"); // Remove version information
requestParameters = requestParameters[0].split("/");
switch (requestParameters[1]) {