Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jul 10, 2024
1 parent 014fbb1 commit 7c9044e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ Object.defineProperty(globalThis, 'localStorage', {
key(index: number): string | null {
if (index < 0) return null;
const i = index % 0x100000000;
const keys = Object.keys(keyMap);
if (i >= keys.length) return null;
return keyMap[keys[i]] ?? null;
const v = Object.values(keyMap);
if (i >= v.length) return null;
return v[i] ?? null;
},
removeItem(key: string): void {
const d = keyDigest(key);
Expand Down

0 comments on commit 7c9044e

Please sign in to comment.