Skip to content

Commit 4bf0f84

Browse files
authored
Removed localStorage.hasKey binding (nim-lang#22766)
Doesn't exists anymore. Use `window.localStorage.getItem("key").isNil` instead ![Screenshot from 2023-09-28 07-22-41](https://github.com/nim-lang/Nim/assets/74574275/65d58921-58c7-4a81-9f3b-5faa3a79c4f2)
1 parent f0865fa commit 4bf0f84

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/js/dom.nim

-1
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,6 @@ proc `$`*(s: Selection): string = $(s.toString())
16821682
# Storage "methods"
16831683
proc getItem*(s: Storage, key: cstring): cstring
16841684
proc setItem*(s: Storage, key, value: cstring)
1685-
proc hasItem*(s: Storage, key: cstring): bool
16861685
proc clear*(s: Storage)
16871686
proc removeItem*(s: Storage, key: cstring)
16881687

0 commit comments

Comments
 (0)