@elliemae/pui-app-sdk 2.17.1 → 2.17.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.
|
@@ -9,6 +9,10 @@ var _index = require("./index.js");
|
|
|
9
9
|
|
|
10
10
|
const getWindow = () => {
|
|
11
11
|
try {
|
|
12
|
+
var _window$top;
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
15
|
+
(_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document;
|
|
12
16
|
return window.top || window.self;
|
|
13
17
|
} catch (e) {
|
|
14
18
|
return window.self;
|
|
@@ -2,6 +2,10 @@ import { sendBAEvent } from "./index.js";
|
|
|
2
2
|
|
|
3
3
|
const getWindow = () => {
|
|
4
4
|
try {
|
|
5
|
+
var _window$top;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
8
|
+
(_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document;
|
|
5
9
|
return window.top || window.self;
|
|
6
10
|
} catch (e) {
|
|
7
11
|
return window.self;
|