ps-toolkit-ui 1.15.8 → 1.15.9

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.
@@ -1329,6 +1329,7 @@
1329
1329
  return result;
1330
1330
  };
1331
1331
  HelperClass.setCookie = function (name, value, days) {
1332
+ if (days === void 0) { days = null; }
1332
1333
  var expires = '';
1333
1334
  if (days) {
1334
1335
  var date = new Date();
@@ -7713,13 +7714,12 @@
7713
7714
  this.active = 0;
7714
7715
  this.onSuccess = null;
7715
7716
  this.rules = null;
7716
- this.expireHours = 30 * 24;
7717
7717
  this.type = type;
7718
7718
  this.l = l;
7719
7719
  }
7720
7720
  LoginClass.prototype.setCookie = function (r) {
7721
7721
  if (r.Token) {
7722
- HelperClass.setCookie('Authorization', "Bearer " + r.Token, this.expireHours);
7722
+ HelperClass.setCookie('Authorization', "Bearer " + r.Token);
7723
7723
  }
7724
7724
  };
7725
7725
  LoginClass.prototype.showModal = function () {