From 9f884723d73fe6b80113436f6454adcedee681b0 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 20 Oct 2023 08:50:59 -0700 Subject: [PATCH] don't save compiled js in local storage. --- kiosk/src/Services/LocalStorage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiosk/src/Services/LocalStorage.ts b/kiosk/src/Services/LocalStorage.ts index 42c6e2dc6b44..b97e043ed049 100644 --- a/kiosk/src/Services/LocalStorage.ts +++ b/kiosk/src/Services/LocalStorage.ts @@ -126,6 +126,9 @@ function getBuiltJsInfo(gameId: string): ts.pxtc.BuiltSimJsInfo | undefined { } function setBuiltJsInfo(gameId: string, builtJs: ts.pxtc.BuiltSimJsInfo) { + // Need to switch to indexdb. We're hitting local storage size limit with just a few games. + return; + /* try { const ver = pxt.appTarget?.versions?.target; if (!ver) return; @@ -134,6 +137,7 @@ function setBuiltJsInfo(gameId: string, builtJs: ts.pxtc.BuiltSimJsInfo) { } catch (e) { console.error(e); } + */ } export {