@wolkabout/commons 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -429,7 +429,7 @@ class AssetManager {
|
|
|
429
429
|
*/
|
|
430
430
|
assetLocations = {};
|
|
431
431
|
getAssetLocation(featureSet) {
|
|
432
|
-
return this.assetLocations[featureSet] ?? window.location.
|
|
432
|
+
return this.assetLocations[featureSet] ?? window.location.origin;
|
|
433
433
|
}
|
|
434
434
|
setAssetLocation(featureSet, host) {
|
|
435
435
|
this.assetLocations[featureSet] = host;
|
|
@@ -459,10 +459,7 @@ class FeatureRegistry {
|
|
|
459
459
|
}
|
|
460
460
|
loadExternalFeatures(features) {
|
|
461
461
|
features.forEach((feature) => {
|
|
462
|
-
from(loadRemoteModule(feature.remote, feature.feature)).pipe(map(module => {
|
|
463
|
-
console.log('Received', module);
|
|
464
|
-
return module.default;
|
|
465
|
-
}), catchError((error) => {
|
|
462
|
+
from(loadRemoteModule(feature.remote, feature.feature)).pipe(map(module => module.default), catchError((error) => {
|
|
466
463
|
console.warn("Unable to load: ", feature.remote + '/' + feature.feature, error);
|
|
467
464
|
return of(null);
|
|
468
465
|
})).subscribe((feature) => {
|