mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-15 23:07:29 -08:00
remove localstorage caching
This commit is contained in:
parent
3beab7717b
commit
ec79503eeb
|
@ -15,11 +15,6 @@ export function getAppNameFromCredType(name: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getStyleTokenValue(name: string): string {
|
export function getStyleTokenValue(name: string): string {
|
||||||
if (window.localStorage.getItem(name)) {
|
|
||||||
return window.localStorage.getItem(name) as string;
|
|
||||||
}
|
|
||||||
const style = getComputedStyle(document.body);
|
const style = getComputedStyle(document.body);
|
||||||
const value = style.getPropertyValue(name);
|
return style.getPropertyValue(name);
|
||||||
window.localStorage.setItem(name, value);
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue