We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a762a74 commit 761d842Copy full SHA for 761d842
src/CheckSessionIFrame.js
@@ -66,9 +66,15 @@ export class CheckSessionIFrame {
66
67
this._session_state = session_state;
68
69
- this._timer = window.setInterval(() => {
+ let send = () => {
70
this._frame.contentWindow.postMessage(this._client_id + " " + this._session_state, this._frame_origin);
71
- }, this._interval);
+ };
72
+
73
+ // trigger now
74
+ send();
75
76
+ // and setup timer
77
+ this._timer = window.setInterval(send, this._interval);
78
}
79
80
0 commit comments