@ombori/ga-settings
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -6,2 +6,13 @@ # Change Log | ||
## 4.0.3 (2024-08-24) | ||
### Bug Fixes | ||
* es ([da88e20](https://github.com/ombori/gridapp/commit/da88e209c7bc5698d385b062aa8f5601f22944de)) | ||
## 4.0.2 (2024-08-24) | ||
@@ -8,0 +19,0 @@ |
@@ -23,2 +23,4 @@ "use strict"; | ||
var DEVELOPMENT_ID = 'XXXXXXXXXXXXXXXXXXXXXXXX'; | ||
// TODO, this key should be app specific | ||
var localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
var log = function () { | ||
@@ -129,4 +131,2 @@ var data = []; | ||
}; | ||
// TODO, this key should be app specific | ||
var localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
if (utils_1.isDev) { | ||
@@ -136,3 +136,3 @@ setSettings(getDevSettings(props.devSettings)); | ||
else if (localStorageGridAppSettings) { | ||
log('Settings localStorageGridAppSettings production mode'); | ||
console.log('Settings localStorageGridAppSettings production mode'); | ||
window.addEventListener('GridappReady', handler); | ||
@@ -164,3 +164,3 @@ try { | ||
else { | ||
log('Settings production mode'); | ||
console.log('Settings production mode'); | ||
try { | ||
@@ -167,0 +167,0 @@ handler(); |
{ | ||
"name": "@ombori/ga-settings", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"main": "dist/index.js", | ||
@@ -19,3 +19,3 @@ "license": "UNLICENSED", | ||
"test:coverage": "npm run test -- --coverage --watchAll=false", | ||
"gitHead": "7be08ccdc57b5110545e2644135ab86472bba983" | ||
"gitHead": "f051fc1638263e05b674ae2dcf70a4bbaa5c3ae9" | ||
} |
@@ -17,2 +17,5 @@ import { useEffect, useState, useRef } from 'react'; | ||
// TODO, this key should be app specific | ||
const localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
const log = (...data: any[]): void => { | ||
@@ -139,8 +142,6 @@ if (process.env.NODE_ENV === 'test') return; | ||
// TODO, this key should be app specific | ||
const localStorageGridAppSettings = window.localStorage.getItem('gridappSettings'); | ||
if (isDev) { | ||
setSettings(getDevSettings(props.devSettings)); | ||
} else if (localStorageGridAppSettings) { | ||
log('Settings localStorageGridAppSettings production mode'); | ||
console.log('Settings localStorageGridAppSettings production mode'); | ||
window.addEventListener('GridappReady', handler); | ||
@@ -171,3 +172,3 @@ | ||
} else { | ||
log('Settings production mode'); | ||
console.log('Settings production mode'); | ||
try { | ||
@@ -174,0 +175,0 @@ handler(); |
Sorry, the diff of this file is not supported yet
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
70008