|
|
@ -197,7 +197,7 @@ function createLoaderRules(languages: IFeatureDefinition[], features: IFeatureDe
|
|
|
|
getWorkerUrl: function (moduleId, label) {
|
|
|
|
getWorkerUrl: function (moduleId, label) {
|
|
|
|
var pathPrefix = ${pathPrefix};
|
|
|
|
var pathPrefix = ${pathPrefix};
|
|
|
|
var result = (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label];
|
|
|
|
var result = (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label];
|
|
|
|
if (/^(http:)|(https:)|(file:)/.test(result)) {
|
|
|
|
if (/^((http:)|(https:)|(file:)|(\/\/))/.test(result)) {
|
|
|
|
var currentUrl = String(window.location);
|
|
|
|
var currentUrl = String(window.location);
|
|
|
|
var currentOrigin = currentUrl.substr(0, currentUrl.length - window.location.hash.length - window.location.search.length - window.location.pathname.length);
|
|
|
|
var currentOrigin = currentUrl.substr(0, currentUrl.length - window.location.hash.length - window.location.search.length - window.location.pathname.length);
|
|
|
|
if (result.substring(0, currentOrigin.length) !== currentOrigin) {
|
|
|
|
if (result.substring(0, currentOrigin.length) !== currentOrigin) {
|
|
|
|