@esfaenza/extensions 15.2.38 → 15.2.40
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 +14 -2
- package/fesm2015/esfaenza-extensions.mjs +15 -1
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +13 -1
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.embedding.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1062,12 +1062,24 @@ class AppEmbeddingExtensions {
|
|
|
1062
1062
|
this.MainWindow = this.MainWindow.parent;
|
|
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];
|
|
1067
|
+
if (!this.EmbeddedModule)
|
|
1068
|
+
this.waitForMyConfigAndForceEmbeddedModule();
|
|
1066
1069
|
}
|
|
1067
1070
|
this.configureEmbeddability();
|
|
1068
1071
|
if (this.Embedded)
|
|
1069
1072
|
this.msgService.configureEmbeddability(this.MainWindow, this.MessageObserver);
|
|
1070
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
|
+
}
|
|
1071
1083
|
IsReloadAllowed() {
|
|
1072
1084
|
let ret = this._reloadAllowed;
|
|
1073
1085
|
this._reloadAllowed = true;
|