Skip to content
Snippets Groups Projects
Commit 3efff4ac authored by juanf's avatar juanf
Browse files

SSDM-4966 : Resource load bugfix

SVN: 37995
parent 9bbf930e
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,8 @@ var require = (function() {
for(var sIdx = 0; sIdx < scripts.length; sIdx++) {
var src = scripts[sIdx].src;
var substringEnd = -1;
if((substringEnd = src.indexOf("/api/v3/config.js")) > -1) {
baseUrl = src.substring(0, substringEnd);
if((substringEnd = src.indexOf("/resources/config.js")) > -1) {
baseUrl = src.substring(0, substringEnd+"/resources".length);
}
}
return baseUrl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment