@esfaenza/extensions 15.2.55 → 15.2.57
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.
|
@@ -1084,8 +1084,8 @@ class AppEmbeddingExtensions {
|
|
|
1084
1084
|
return;
|
|
1085
1085
|
// emb/crm/parties/parties_search?blabla --> parties/parties_search
|
|
1086
1086
|
let normalizedRequestedRoute = event.data.routerLink.split("?")[0].split("/").slice(2).join("/");
|
|
1087
|
-
///pages_ext/parties/parties_search?blabla --> parties/parties_search
|
|
1088
|
-
let normalizedFirstRoute = this.pushedHistories.length > 0 ? this.pushedHistories[0].from.split("?")[0].split("/").slice(
|
|
1087
|
+
///pages_ext/{module}/parties/parties_search?blabla --> parties/parties_search
|
|
1088
|
+
let normalizedFirstRoute = this.pushedHistories.length > 0 ? this.pushedHistories[0].from.split("?")[0].split("/").slice(3).join("/") : "";
|
|
1089
1089
|
// La route su cui sto navigando ora è uguale alla route in cui l'embedding è iniziato.
|
|
1090
1090
|
// Significa che devo simulare dei back fino a che non sono arrivato all'inizio
|
|
1091
1091
|
if (normalizedRequestedRoute == normalizedFirstRoute) {
|
|
@@ -1120,6 +1120,7 @@ class AppEmbeddingExtensions {
|
|
|
1120
1120
|
// Ignoro i miei messaggi dato che mi interessano solo quelli degli altri iframe
|
|
1121
1121
|
if (event.source == window && event?.data?.type != "modal-open")
|
|
1122
1122
|
return;
|
|
1123
|
+
let sourceWindow = event.source;
|
|
1123
1124
|
// Posso gestire lo stesso identico messaggio solo 1 volta ogni MessageBarrierDebouncMs
|
|
1124
1125
|
let messageHash = this.messageHash(event);
|
|
1125
1126
|
if (this.OnMessageCallBarrier[messageHash])
|
|
@@ -1160,7 +1161,6 @@ class AppEmbeddingExtensions {
|
|
|
1160
1161
|
}
|
|
1161
1162
|
else if (event?.data?.type == "confirm") {
|
|
1162
1163
|
console.log(`Window message - confirm -> Level: ${event?.data?.level}, Message: ${event?.data?.text}, Title: ${event?.data?.title}, ID: ${event?.data?.guid}`);
|
|
1163
|
-
var sourceWindow = event.source;
|
|
1164
1164
|
var baseResponse = { type: "confirm-response", guid: event?.data?.guid };
|
|
1165
1165
|
switch (event?.data?.level) {
|
|
1166
1166
|
case "success":
|