Skip to content

Commit

Permalink
Fix importing past scripts when no browser prefix is set for the old …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
riknoll committed Feb 28, 2024
1 parent c49cb80 commit 2449f07
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions webapp/src/idbworkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ async function migratePrefixesAsync() {
const currentMajor = currentVersion.major;
const previousMajor = currentMajor - 1;
const previousDbPrefix = previousMajor < 0 ? "" : pxt.appTarget.appTheme.browserDbPrefixes[previousMajor];

if (!previousDbPrefix) return;
const currentDb = await getCurrentDbAsync();

// If headers are already in the new db, migration must have already happened
Expand Down

0 comments on commit 2449f07

Please sign in to comment.