Skip to content
Snippets Groups Projects
Commit d260bcf6 authored by echicken's avatar echicken :chicken:
Browse files

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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -46,9 +46,13 @@ var defaults = {
if (typeof v !== 'string') return new Error('Invalid files_inline_blacklist setting ' + v);
return v.split(',');
}
}
},
darkmode_allow: { default: true },
darkmode_on: { default: false },
};
if (settings.darkmode_off) settings.darkmode_allow = false;
function doError(e) {
log(LOG_ERROR, e);
http_reply.status = '500 Internal Server Error';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment