Skip to content

Commit

Permalink
feat: add localStorage production warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Oct 12, 2024
1 parent 38707bf commit 3fb9290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sessionManager/stores/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { splitString } from "../utils.js";
* @class LocalStorage
*/
export class LocalStorage<V = StorageKeys> implements SessionManager<V> {
constructor() {
console.warn("LocalStorage store should not be used in production");
}

setItems: Set<V | StorageKeys> = new Set<V>();

/**
Expand Down

0 comments on commit 3fb9290

Please sign in to comment.