mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00

Made the viewer respect the `--blockexternal` and `--nolibrarybutton` options of `kiwix-serve`. Those options are passed to the viewer via the dynamically generated resource `/viewer_settings.js`.
5 lines
127 B
JavaScript
5 lines
127 B
JavaScript
const viewerSettings = {
|
|
linkBlockingEnabled: {{enable_link_blocking}},
|
|
libraryButtonEnabled: {{enable_library_button}}
|
|
}
|