Skip to content

Commit

Permalink
v6.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 13, 2021
1 parent bb4b15e commit bc77fd0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions published/6.4.4/appwidget.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions published/6.4.4/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions published/6.4.4/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,21 @@ class Gleap {
StreamedEvent.getInstance().start();
}

const self = this;
if (
document.readyState === "complete" ||
document.readyState === "loaded" ||
document.readyState === "interactive"
) {
this.checkForInitType();
self.checkForInitType();
} else {
document.addEventListener("DOMContentLoaded", function (event) {
this.checkForInitType();
self.checkForInitType();
});
}

if (this.widgetCallback) {
this.widgetCallback("sessionReady");
self.widgetCallback("sessionReady");
}
}

Expand Down

0 comments on commit bc77fd0

Please sign in to comment.