Skip to content

Commit c620f50

Browse files
ashubhamjakebailey
andauthored
Fixes localStorage reference causing error (#2796)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
1 parent 0de2a84 commit c620f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript-vfs/src/index.ts

Lines changed: 1 addition & 1 deletion
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)