Skip to content

Commit 7194f1f

Browse files
committed
lnc-web: use triple equals for localStorage clear check
1 parent e7e09fa commit 7194f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default class LNC {
208208
clearStorage = () =>
209209
Object.entries(localStorage)
210210
.map((x) => x[0])
211-
.filter((x) => x.substring(0, 8) == 'lnc-web:')
211+
.filter((x) => x.substring(0, 8) === 'lnc-web:')
212212
.map((x) => localStorage.removeItem(x));
213213

214214
/**

0 commit comments

Comments
 (0)