diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-29 00:22:00 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-29 00:26:56 +0200 |
commit | 8028c5a15a65dfdacb9ba8250c88e338546b49dc (patch) | |
tree | 968f3643852a6382f00dc0bd51ff0f659966f31b /src/local | |
parent | 8268ba2cf049be1865875e3e01305a500fa533e2 (diff) | |
download | chawan-8028c5a15a65dfdacb9ba8250c88e338546b49dc.tar.gz |
config: add various missing options
Mainly things you could already set with [[siteconf]] but not normally. Also, a `styling' option to disable author styles. Also, `images' is now documented as an "experimental" option, since it's halfway usable now.
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/pager.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index cd0df216..cdc08422 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1074,10 +1074,11 @@ proc applySiteconf(pager: Pager; url: var URL; charsetOverride: Charset; let ctx = pager.jsctx var res = BufferConfig( userstyle: pager.config.css.stylesheet, - referer_from: false, - scripting: false, + referer_from: pager.config.buffer.referer_from, + scripting: pager.config.buffer.scripting, charsets: pager.config.encoding.document_charset, - images: false, + images: pager.config.buffer.images, + styling: pager.config.buffer.styling, isdump: pager.config.start.headless, charsetOverride: charsetOverride, protocol: pager.config.protocol |