about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-30 21:55:16 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-30 21:56:32 +0200
commit9eb459ad095aa3fb30d967359e0bc6846262f6ea (patch)
tree1097a34056f416c7accce42299a7e654bc9288dd /src/types
parent7870b9aa5d32b5b3c938be205f9ba49fd4e4734f (diff)
downloadchawan-9eb459ad095aa3fb30d967359e0bc6846262f6ea.tar.gz
url: fix searchParams.delete
Diffstat (limited to 'src/types')
-rw-r--r--src/types/url.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index 61f051ac..72e817c1 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -1177,6 +1177,7 @@ proc delete(params: URLSearchParams; name: string) {.jsfunc.} =
   for i in countdown(params.list.high, 0):
     if params.list[i][0] == name:
       params.list.delete(i)
+  params.update()
 
 proc get*(params: URLSearchParams; name: string): Option[string] {.jsfunc.} =
   for it in params.list: