@etsoo/materialui 1.4.1 → 1.4.2

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.
@@ -54,8 +54,8 @@ export class ServiceApp extends ReactApp {
54
54
  return;
55
55
  // Add try login flag
56
56
  url = url.addUrlParam("tryLogin", tryLogin ?? false);
57
- // Is it inside an iframe?
58
- if (globalThis.self !== globalThis.parent) {
57
+ // Is it embeded?
58
+ if (this.embedded) {
59
59
  globalThis.parent.postMessage(["login", url], this.coreOrigin);
60
60
  }
61
61
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,9 +50,9 @@
50
50
  "@emotion/css": "^11.13.4",
51
51
  "@emotion/react": "^11.13.3",
52
52
  "@emotion/styled": "^11.13.0",
53
- "@etsoo/appscript": "^1.5.34",
53
+ "@etsoo/appscript": "^1.5.35",
54
54
  "@etsoo/notificationbase": "^1.1.49",
55
- "@etsoo/react": "^1.7.72",
55
+ "@etsoo/react": "^1.7.73",
56
56
  "@etsoo/shared": "^1.2.48",
57
57
  "@mui/icons-material": "^6.1.3",
58
58
  "@mui/material": "^6.1.3",
@@ -92,8 +92,8 @@ export class ServiceApp<
92
92
  // Add try login flag
93
93
  url = url.addUrlParam("tryLogin", tryLogin ?? false);
94
94
 
95
- // Is it inside an iframe?
96
- if (globalThis.self !== globalThis.parent) {
95
+ // Is it embeded?
96
+ if (this.embedded) {
97
97
  globalThis.parent.postMessage(["login", url], this.coreOrigin);
98
98
  } else {
99
99
  if (BridgeUtils.host == null) {