Skip to content

Commit

Permalink
don't save compiled js in local storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Oct 20, 2023
1 parent e9c04fd commit 9f88472
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kiosk/src/Services/LocalStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -134,6 +137,7 @@ function setBuiltJsInfo(gameId: string, builtJs: ts.pxtc.BuiltSimJsInfo) {
} catch (e) {
console.error(e);
}
*/
}

export {
Expand Down

0 comments on commit 9f88472

Please sign in to comment.