@jetbrains/ring-ui-built 6.0.69 → 6.0.70
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.
@@ -123,7 +123,14 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
|
|
123
123
|
_defineProperty(this, "userConsent", DEFAULT_CONSENT);
|
124
124
|
_defineProperty(this, "intervalId", void 0);
|
125
125
|
_defineProperty(this, "startChecking", function () {
|
126
|
-
_this.intervalId = window.setInterval(
|
126
|
+
_this.intervalId = window.setInterval(function () {
|
127
|
+
return _this.checkConsentAndShowDialog().catch(function (reason) {
|
128
|
+
if (reason === 'Postponed') {
|
129
|
+
return;
|
130
|
+
}
|
131
|
+
throw reason;
|
132
|
+
});
|
133
|
+
}, _this.interval);
|
127
134
|
window.addEventListener('storage', _this.onStorageEvent);
|
128
135
|
_this.checkConsentAndShowDialog();
|
129
136
|
});
|