Skip to content

Commit 3fb9290

Browse files
committed
feat: add localStorage production warning
1 parent 38707bf commit 3fb9290

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/sessionManager/stores/localStorage.ts

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { splitString } from "../utils.js";
77
* @class LocalStorage
88
*/
99
export class LocalStorage<V = StorageKeys> implements SessionManager<V> {
10+
constructor() {
11+
console.warn("LocalStorage store should not be used in production");
12+
}
13+
1014
setItems: Set<V | StorageKeys> = new Set<V>();
1115

1216
/**

0 commit comments

Comments
 (0)