From ec79503eebcf4e8656566ed6a64378b9c5f8dd32 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Mon, 1 Nov 2021 17:54:48 +0100 Subject: [PATCH] remove localstorage caching --- packages/editor-ui/src/components/helpers.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/editor-ui/src/components/helpers.ts b/packages/editor-ui/src/components/helpers.ts index 98ef17be05..506b3de618 100644 --- a/packages/editor-ui/src/components/helpers.ts +++ b/packages/editor-ui/src/components/helpers.ts @@ -15,11 +15,6 @@ export function getAppNameFromCredType(name: 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 value = style.getPropertyValue(name); - window.localStorage.setItem(name, value); - return value; + return style.getPropertyValue(name); }