@4site/engrid-scripts 0.19.4 → 0.19.5
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.
- package/dist/iframe.js +8 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/iframe.js
CHANGED
|
@@ -31,11 +31,15 @@ export class iFrame {
|
|
|
31
31
|
// Fire the resize event
|
|
32
32
|
this.logger.log("iFrame Event - Begin Resizing");
|
|
33
33
|
// Run onLoaded function
|
|
34
|
-
|
|
34
|
+
console.log("document.readyState", document.readyState);
|
|
35
|
+
// Document Load
|
|
36
|
+
if (document.readyState !== "loading") {
|
|
35
37
|
this.onLoaded();
|
|
36
38
|
}
|
|
37
39
|
else {
|
|
38
|
-
|
|
40
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
41
|
+
this.onLoaded();
|
|
42
|
+
});
|
|
39
43
|
}
|
|
40
44
|
window.setTimeout(() => {
|
|
41
45
|
this.sendIframeHeight();
|
|
@@ -130,6 +134,8 @@ export class iFrame {
|
|
|
130
134
|
this.sendIframeHeight();
|
|
131
135
|
}, 100);
|
|
132
136
|
});
|
|
137
|
+
// Watch for errors and send the height
|
|
138
|
+
ENGrid.watchForError(this.sendIframeHeight.bind(this));
|
|
133
139
|
}
|
|
134
140
|
sendIframeHeight() {
|
|
135
141
|
let height = document.body.offsetHeight;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.19.
|
|
1
|
+
export declare const AppVersion = "0.19.5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.19.
|
|
1
|
+
export const AppVersion = "0.19.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.5",
|
|
4
4
|
"description": "Scripts for the ENGRID Project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"strongly-typed-events": "^2.0.9"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/4site-interactive-studios/engrid#readme",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "b0e2cba40e66bb5f6fc2867c5baf344d7ce58201",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|