diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-29 01:42:33 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-29 01:42:33 +0100 |
commit | 1f3e1d397513c2a7a27372c3fe5c4bc9d74b6f09 (patch) | |
tree | 3b2605af34d2a3d6cefd851bbb4e15b5e2a568f0 /src/local | |
parent | 558596b72c1c0fd355b0e7f1476651852e3cee5a (diff) | |
download | chawan-1f3e1d397513c2a7a27372c3fe5c4bc9d74b6f09.tar.gz |
pager: fix gotoURL crashing
should finally convert the code to strictDefs, implicit result is a horrible footgun
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/pager.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index f74cf798..9b417d95 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -904,6 +904,7 @@ proc load(pager: Pager, s = "") {.jsfunc.} = # Go to specific URL (for JS) proc jsGotoURL(pager: Pager, s: string): JSResult[void] {.jsfunc: "gotoURL".} = pager.gotoURL(newRequest(?newURL(s))) + ok() # Reload the page in a new buffer, then kill the previous buffer. proc reload(pager: Pager) {.jsfunc.} = |