Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay authored Dec 2, 2020
2 parents 6676216 + daca2ab commit d3e522b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/UniversalStorage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class UniversalStorage implements Storage {

clear() {
Array.from(new Array(this.length))
.map((value, i) => this.key(i))
.map((_, i) => this.key(i))
.forEach(key => this.removeItem(key));
}

Expand Down Expand Up @@ -58,7 +58,9 @@ export class UniversalStorage implements Storage {
}

protected removeUniversalItem(key: keyof Store) {
this.cookies.remove(key);
this.cookies.remove(key, {
path: '/',
});
}

setItem(key: keyof Store, value: string) {
Expand Down

0 comments on commit d3e522b

Please sign in to comment.