Skip to content

Commit c620f50

Browse files
ashubhamjakebailey
andauthored
Fixes localStorage reference causing error (#2796)
Co-authored-by: Jake Bailey <[email protected]>
1 parent 0de2a84 commit c620f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/typescript-vfs/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export const createDefaultMapFromCDN = (
295295
function cached() {
296296
const storelike = storer || localStorage
297297

298-
const keys = Object.keys(localStorage)
298+
const keys = Object.keys(storelike)
299299
keys.forEach(key => {
300300
// Remove anything which isn't from this version
301301
if (key.startsWith("ts-lib-") && !key.startsWith("ts-lib-" + version)) {

0 commit comments

Comments
 (0)