minimal-piral 1.5.3-beta.6968 → 1.5.3-beta.6983

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.
@@ -3650,12 +3650,12 @@ function installPiralDebug(options) {
3650
3650
  debug: debugApiVersion,
3651
3651
  instance: {
3652
3652
  name: "minimal-piral",
3653
- version: "1.5.3-beta.6968",
3653
+ version: "1.5.3-beta.6983",
3654
3654
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
3655
3655
  },
3656
3656
  build: {
3657
- date: "2024-04-08T09:56:00.029Z",
3658
- cli: "1.5.3-beta.6968",
3657
+ date: "2024-04-11T13:22:52.821Z",
3658
+ cli: "1.5.3-beta.6983",
3659
3659
  compat: "1"
3660
3660
  }
3661
3661
  };
@@ -4106,13 +4106,15 @@ var persistentSetter = function persistentSetter(name, value) {
4106
4106
  };
4107
4107
  function getValue(key, defaultValue, fallbackValue) {
4108
4108
  var value = sessionStorage.getItem(key);
4109
+ var actualValue = value === 'on';
4109
4110
  if (['on', 'off'].includes(value)) {
4110
- return value === 'on';
4111
- } else if (typeof defaultValue === 'boolean') {
4112
- return defaultValue;
4113
- } else {
4114
- return fallbackValue;
4111
+ return actualValue;
4112
+ }
4113
+ var currentValue = typeof defaultValue === 'boolean' ? defaultValue : fallbackValue;
4114
+ if (actualValue !== currentValue) {
4115
+ sessionStorage.setItem(key, currentValue ? 'on' : 'off');
4115
4116
  }
4117
+ return currentValue;
4116
4118
  }
4117
4119
  if (persistSettings) {
4118
4120
  try {
@@ -44766,4 +44768,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
44766
44768
 
44767
44769
  /******/ })()
44768
44770
  ;
44769
- //# sourceMappingURL=index.d444bc.js.map
44771
+ //# sourceMappingURL=index.f6c0d1.js.map