@jetbrains/ring-ui-built 6.0.77 → 6.0.79
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.
| @@ -106,6 +106,12 @@ var DEFAULT_AGREEMENT = { | |
| 106 106 | 
             
              requiredForREST: false,
         | 
| 107 107 | 
             
              content: ''
         | 
| 108 108 | 
             
            };
         | 
| 109 | 
            +
            function ignorePostponedCatchReason(reason) {
         | 
| 110 | 
            +
              if (reason === 'Postponed') {
         | 
| 111 | 
            +
                return;
         | 
| 112 | 
            +
              }
         | 
| 113 | 
            +
              throw reason;
         | 
| 114 | 
            +
            }
         | 
| 109 115 | 
             
            var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementService(config) {
         | 
| 110 116 | 
             
              var _this = this;
         | 
| 111 117 | 
             
              _classCallCheck(this, UserAgreementService);
         | 
| @@ -124,15 +130,10 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi | |
| 124 130 | 
             
              _defineProperty(this, "intervalId", void 0);
         | 
| 125 131 | 
             
              _defineProperty(this, "startChecking", function () {
         | 
| 126 132 | 
             
                _this.intervalId = window.setInterval(function () {
         | 
| 127 | 
            -
                  return _this.checkConsentAndShowDialog().catch( | 
| 128 | 
            -
                    if (reason === 'Postponed') {
         | 
| 129 | 
            -
                      return;
         | 
| 130 | 
            -
                    }
         | 
| 131 | 
            -
                    throw reason;
         | 
| 132 | 
            -
                  });
         | 
| 133 | 
            +
                  return _this.checkConsentAndShowDialog().catch(ignorePostponedCatchReason);
         | 
| 133 134 | 
             
                }, _this.interval);
         | 
| 134 135 | 
             
                window.addEventListener('storage', _this.onStorageEvent);
         | 
| 135 | 
            -
                _this.checkConsentAndShowDialog();
         | 
| 136 | 
            +
                _this.checkConsentAndShowDialog().catch(ignorePostponedCatchReason);
         | 
| 136 137 | 
             
              });
         | 
| 137 138 | 
             
              _defineProperty(this, "stopChecking", function () {
         | 
| 138 139 | 
             
                clearInterval(_this.intervalId);
         |