Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit d260bcf6 authored by echicken's avatar echicken 🐔

Added 'darkmode_allow' setting, which defaults to true.

'darkmode_off' will still work if set, but is deprecated.
Added 'darkmode_on' setting, which defaults to false;
if set, darkmode is turned on until the user turns it off.
parent 6a02a536
...@@ -46,9 +46,13 @@ var defaults = { ...@@ -46,9 +46,13 @@ var defaults = {
if (typeof v !== 'string') return new Error('Invalid files_inline_blacklist setting ' + v); if (typeof v !== 'string') return new Error('Invalid files_inline_blacklist setting ' + v);
return v.split(','); return v.split(',');
} }
} },
darkmode_allow: { default: true },
darkmode_on: { default: false },
}; };
if (settings.darkmode_off) settings.darkmode_allow = false;
function doError(e) { function doError(e) {
log(LOG_ERROR, e); log(LOG_ERROR, e);
http_reply.status = '500 Internal Server Error'; http_reply.status = '500 Internal Server Error';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment