@ombori/ga-settings
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -6,2 +6,13 @@ # Change Log | ||
## 4.1.1 (2024-08-25) | ||
### Bug Fixes | ||
* settings read from right localstorage ([9dcf45c](https://github.com/ombori/gridapp/commit/9dcf45cfb5016c4a5872f759914b928341130fc9)) | ||
# 4.1.0 (2024-08-25) | ||
@@ -8,0 +19,0 @@ |
@@ -23,4 +23,4 @@ "use strict"; | ||
var DEVELOPMENT_ID = 'XXXXXXXXXXXXXXXXXXXXXXXX'; | ||
// TODO, this key should be app specific | ||
var localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
var settingsKey = document.location.pathname.split('/').splice(0, 4).join('/'); | ||
var localStorageGridAppSettings = window.localStorage.getItem(settingsKey); | ||
var log = function () { | ||
@@ -158,3 +158,3 @@ var data = []; | ||
id: 'app-container', | ||
root: document.location.pathname.split('/').splice(0, 4).join('/'), | ||
root: settingsKey, | ||
settings: localStorageSettings_1, | ||
@@ -161,0 +161,0 @@ }; |
{ | ||
"name": "@ombori/ga-settings", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"main": "dist/index.js", | ||
@@ -19,3 +19,3 @@ "license": "UNLICENSED", | ||
"test:coverage": "npm run test -- --coverage --watchAll=false", | ||
"gitHead": "0a121fc29f35036e2895b370f61f6f3d0aad6b5f" | ||
"gitHead": "32854d4a137160831e37eb84537f96aa5e611ffe" | ||
} |
@@ -17,4 +17,4 @@ import { useEffect, useState, useRef } from 'react'; | ||
// TODO, this key should be app specific | ||
const localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
const settingsKey = document.location.pathname.split('/').splice(0, 4).join('/'); | ||
const localStorageGridAppSettings = window.localStorage.getItem(settingsKey); | ||
@@ -174,3 +174,3 @@ const log = (...data: any[]): void => { | ||
id: 'app-container', | ||
root: document.location.pathname.split('/').splice(0, 4).join('/'), | ||
root: settingsKey, | ||
settings: localStorageSettings, | ||
@@ -177,0 +177,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72956