@esfaenza/extensions 15.2.39 → 15.2.41
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.
- package/esm2020/lib/services/extensions.embedding.service.mjs +13 -2
- package/fesm2015/esfaenza-extensions.mjs +13 -1
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +12 -1
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.embedding.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1063,12 +1063,23 @@ class AppEmbeddingExtensions {
|
|
|
1063
1063
|
this.EmbeddingLevel++;
|
|
1064
1064
|
this.Embedded = true;
|
|
1065
1065
|
// Fallback per farlo funzionare forzatamente mentre lo testo
|
|
1066
|
-
this.EmbeddedModule = this.location.path().match(/module=([a-zA-Z_]+)/)?.[1]
|
|
1066
|
+
this.EmbeddedModule = this.location.path().match(/module=([a-zA-Z_]+)/)?.[1];
|
|
1067
|
+
if (!this.EmbeddedModule)
|
|
1068
|
+
this.waitForMyConfigAndForceEmbeddedModule();
|
|
1067
1069
|
}
|
|
1068
1070
|
this.configureEmbeddability();
|
|
1069
1071
|
if (this.Embedded)
|
|
1070
1072
|
this.msgService.configureEmbeddability(this.MainWindow, this.MessageObserver);
|
|
1071
1073
|
}
|
|
1074
|
+
waitForMyConfigAndForceEmbeddedModule() {
|
|
1075
|
+
// Aspetto di ricevere il myconfig e setto con lui l'embeddedmodule. Questo viene eseguito solo se this.location.path() per qualche motivo non contiene il module
|
|
1076
|
+
let interval = setInterval(() => {
|
|
1077
|
+
if (myconfig?.AppData?.ModuleId) {
|
|
1078
|
+
this.EmbeddedModule = myconfig.AppData.ModuleId;
|
|
1079
|
+
clearInterval(interval);
|
|
1080
|
+
}
|
|
1081
|
+
}, 250);
|
|
1082
|
+
}
|
|
1072
1083
|
IsReloadAllowed() {
|
|
1073
1084
|
let ret = this._reloadAllowed;
|
|
1074
1085
|
this._reloadAllowed = true;
|