GX-Bug #58712 » jse-module-loader-fix.patch
src/JSEngine/core/module_loader.js (date 1534178780000) | ||
---|---|---|
152 | 152 |
// Then convert the relative path to JSEngine/libs directory. |
153 | 153 |
if (dependency.indexOf('http') === -1) { |
154 | 154 |
dependencies[index] = jse.core.config.get('engineUrl') + '/libs/' + dependency + fileExtension; |
155 |
} else if (dependency.indexOf('.js') === -1) { // Then add the dynamic file extension to the URL.
|
|
155 |
} else if (dependency.substr(-3) !== '.js') { // Then add the dynamic file extension to the URL.
|
|
156 | 156 |
dependencies[index] += fileExtension; |
157 | 157 |
} |
158 | 158 |
} |