From 9653c35fb9a4398942ecb305835a95fbd87c433a Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 28 Jul 2024 20:50:51 +0200 Subject: buffer, pager, config: add meta-refresh + misc fixes * buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase --- src/local/client.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'src/local/client.nim') diff --git a/src/local/client.nim b/src/local/client.nim index 1fc5a7f1..eae079d9 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -738,6 +738,7 @@ proc launchClient*(client: Client; pages: seq[string]; # better associate it with jsctx client.timeouts = newTimeoutState(client.selector, client.jsctx, client.console.err, proc(src, file: string) = client.evalJSFree(src, file)) + client.pager.timeouts = client.timeouts addExitProc((proc() = client.cleanup())) if client.config.start.startup_script != "": let s = if fileExists(client.config.start.startup_script): -- cgit 1.4.1-2-gfad0