@schibsted/account-sdk-browser 5.0.1-beta.6 → 5.0.1-beta.8

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/es5/global.js CHANGED
@@ -2501,7 +2501,7 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2501
2501
  _context2.next = 4;
2502
2502
  return _this2.callbackBeforeRedirect();
2503
2503
  case 4:
2504
- return _context2.abrupt("return", _this2.window.location.href = _this2._sessionService.makeUrl(sessionData.redirectURL, {
2504
+ return _context2.abrupt("return", _this2._sessionService.makeUrl(sessionData.redirectURL, {
2505
2505
  tabId: _this2._getTabId()
2506
2506
  }));
2507
2507
  case 5:
@@ -2658,6 +2658,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
2658
2658
  };
2659
2659
  }();
2660
2660
  this._hasSessionInProgress = _getSession().then(function (sessionData) {
2661
+ if (Object(_validate_js__WEBPACK_IMPORTED_MODULE_55__["isUrl"])(sessionData)) {
2662
+ return _this2.window.location.href = sessionData;
2663
+ }
2661
2664
  _this2._hasSessionInProgress = false;
2662
2665
  _this2._unblockSessionCallByTab();
2663
2666
  return sessionData;
@@ -12171,7 +12174,7 @@ __webpack_require__.r(__webpack_exports__);
12171
12174
 
12172
12175
 
12173
12176
 
12174
- var version = '5.0.1-beta.6';
12177
+ var version = '5.0.1-beta.8';
12175
12178
  /* harmony default export */ __webpack_exports__["default"] = (version);
12176
12179
 
12177
12180
  /***/ }),