summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorThiago <74574275+thisago@users.noreply.github.com>2023-09-28 09:30:04 +0000
committerGitHub <noreply@github.com>2023-09-28 11:30:04 +0200
commit4bf0f846df3bdeeeeff288f1d28688ee4852bc71 (patch)
tree175229fb3433d97767e8ca80f3ca5373be83161d
parentf0865fa6960cbff301318f4ef8d603052519b24d (diff)
downloadNim-4bf0f846df3bdeeeeff288f1d28688ee4852bc71.tar.gz
Removed `localStorage.hasKey` binding (#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)
-rw-r--r--lib/js/dom.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index ba9b4159d..eb05308bb 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -1682,7 +1682,6 @@ proc `$`*(s: Selection): string = $(s.toString())
 # Storage "methods"
 proc getItem*(s: Storage, key: cstring): cstring
 proc setItem*(s: Storage, key, value: cstring)
-proc hasItem*(s: Storage, key: cstring): bool
 proc clear*(s: Storage)
 proc removeItem*(s: Storage, key: cstring)