@etsoo/appscript 1.5.36 → 1.5.37

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.
@@ -1610,7 +1610,7 @@ class CoreApp {
1610
1610
  }
1611
1611
  // Is web way?
1612
1612
  // Pass the true embedded status from parent to child (Both conditions are true)
1613
- if (isWeb && embedded && globalThis.self !== globalThis.parent) {
1613
+ if (isWeb && embedded && globalThis.self === globalThis.parent) {
1614
1614
  embedded = false;
1615
1615
  }
1616
1616
  // Ignore the same value
@@ -1607,7 +1607,7 @@ export class CoreApp {
1607
1607
  }
1608
1608
  // Is web way?
1609
1609
  // Pass the true embedded status from parent to child (Both conditions are true)
1610
- if (isWeb && embedded && globalThis.self !== globalThis.parent) {
1610
+ if (isWeb && embedded && globalThis.self === globalThis.parent) {
1611
1611
  embedded = false;
1612
1612
  }
1613
1613
  // Ignore the same value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.36",
3
+ "version": "1.5.37",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -2198,7 +2198,7 @@ export abstract class CoreApp<
2198
2198
 
2199
2199
  // Is web way?
2200
2200
  // Pass the true embedded status from parent to child (Both conditions are true)
2201
- if (isWeb && embedded && globalThis.self !== globalThis.parent) {
2201
+ if (isWeb && embedded && globalThis.self === globalThis.parent) {
2202
2202
  embedded = false;
2203
2203
  }
2204
2204