From 835588cfd3630cb7d062febbfc0e687ae0ce9053 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 6 Oct 2023 23:15:22 +0700 Subject: [PATCH] Disable model storage for now (#3805) Signed-off-by: Andrey Sobolev --- plugins/client-resources/src/index.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/client-resources/src/index.ts b/plugins/client-resources/src/index.ts index 424c7393fc..b317b1fa33 100644 --- a/plugins/client-resources/src/index.ts +++ b/plugins/client-resources/src/index.ts @@ -63,19 +63,19 @@ export default async () => { filterModel ? [...getPlugins(), ...(getMetadata(clientPlugin.metadata.ExtraPlugins) ?? [])] : undefined, { load: async () => { - if (typeof localStorage !== 'undefined') { - const dta = localStorage.getItem('stored_model_' + token) ?? null - if (dta === null) { - return [] - } - return JSON.parse(dta) - } + // if (typeof localStorage !== 'undefined') { + // const dta = localStorage.getItem('stored_model_' + token) ?? null + // if (dta === null) { + // return [] + // } + // return JSON.parse(dta) + // } return [] }, store: async (txes) => { - if (typeof localStorage !== 'undefined') { - localStorage.setItem('stored_model_' + token, JSON.stringify(txes)) - } + // if (typeof localStorage !== 'undefined') { + // localStorage.setItem('stored_model_' + token, JSON.stringify(txes)) + // } } } )