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