diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-13 00:04:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-13 00:04:50 +0100 |
commit | d9e430c8147c8c2d81b4ca5405786269b2cfc94d (patch) | |
tree | 91ddb6edbedc6e8310fedc13106b8b3bdcec2cdc /src/display/client.nim | |
parent | 7a3fb32bff44a581d6926bfaf5f070f8ef062338 (diff) | |
download | chawan-d9e430c8147c8c2d81b4ca5405786269b2cfc94d.tar.gz |
Add all sorts of config options and cookies
Diffstat (limited to 'src/display/client.nim')
-rw-r--r-- | src/display/client.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/display/client.nim b/src/display/client.nim index 7bf9a278..90945968 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -48,7 +48,7 @@ type pager {.jsget.}: Pager line {.jsget.}: LineEdit sevent: seq[Container] - config: Config + config {.jsget.}: Config jsrt: JSRuntime jsctx: JSContext timeoutid: int @@ -466,7 +466,9 @@ proc newClient*(config: Config, dispatcher: Dispatcher): Client = result.jsrt.setInterruptHandler(interruptHandler, cast[pointer](result)) let ctx = result.jsrt.newJSContext() result.jsctx = ctx - result.pager = newPager(config, result.attrs, dispatcher, result.config.getSiteConfig(ctx)) + result.pager = newPager(config, result.attrs, dispatcher, + result.config.getSiteConfig(ctx), + result.config.getOmniRules(ctx)) var global = ctx.getGlobalObject() ctx.registerType(Client, asglobal = true) global.setOpaque(result) @@ -481,5 +483,7 @@ proc newClient*(config: Config, dispatcher: Dispatcher): Client = ctx.addHTMLModule() ctx.addRequestModule() ctx.addLineEditModule() + ctx.addConfigModule() ctx.addPagerModule() ctx.addContainerModule() + ctx.addConfigModule() |