mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-15 14:58:53 -08:00
force type
This commit is contained in:
parent
f0057dedd4
commit
71b50aeaf6
|
@ -14,9 +14,9 @@ export function getAppNameFromCredType(name: string) {
|
|||
return name.split(' ').filter((word) => !KEYWORDS_TO_FILTER.includes(word)).join(' ');
|
||||
}
|
||||
|
||||
export function getStyleTokenValue(name: string) {
|
||||
export function getStyleTokenValue(name: string): string {
|
||||
if (window.localStorage.getItem(name)) {
|
||||
return window.localStorage.getItem(name);
|
||||
return window.localStorage.getItem(name) as string;
|
||||
}
|
||||
const style = getComputedStyle(document.body);
|
||||
const value = style.getPropertyValue(name);
|
||||
|
|
Loading…
Reference in a new issue