@esfaenza/extensions 15.2.54 → 15.2.56

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.
@@ -1112,13 +1112,15 @@ class AppEmbeddingExtensions {
1112
1112
  return `${JSON.parse(JSON.stringify(event?.data))}`;
1113
1113
  }
1114
1114
  configureEmbeddability() {
1115
- if (this.Embedded) {
1115
+ if (this.Embedded)
1116
1116
  this.MainWindow.postMessage({ type: "whois" }, "*");
1117
- }
1117
+ else
1118
+ this.EmbeddingSource.next("");
1118
1119
  window.onmessage = (event) => {
1119
1120
  // Ignoro i miei messaggi dato che mi interessano solo quelli degli altri iframe
1120
1121
  if (event.source == window && event?.data?.type != "modal-open")
1121
1122
  return;
1123
+ let sourceWindow = event.source;
1122
1124
  // Posso gestire lo stesso identico messaggio solo 1 volta ogni MessageBarrierDebouncMs
1123
1125
  let messageHash = this.messageHash(event);
1124
1126
  if (this.OnMessageCallBarrier[messageHash])
@@ -1159,7 +1161,6 @@ class AppEmbeddingExtensions {
1159
1161
  }
1160
1162
  else if (event?.data?.type == "confirm") {
1161
1163
  console.log(`Window message - confirm -> Level: ${event?.data?.level}, Message: ${event?.data?.text}, Title: ${event?.data?.title}, ID: ${event?.data?.guid}`);
1162
- var sourceWindow = event.source;
1163
1164
  var baseResponse = { type: "confirm-response", guid: event?.data?.guid };
1164
1165
  switch (event?.data?.level) {
1165
1166
  case "success":