Make dark theme toggle only run in dev mode.

This commit is contained in:
Steve Howell
2017-11-22 14:49:27 -08:00
committed by Tim Abbott
parent a37e993907
commit 59870b2203

View File

@@ -3,6 +3,10 @@ var settings_display = (function () {
var exports = {};
exports.set_night_mode = function (bool) {
if (!page_params.development) {
return;
}
var night_mode = bool;
var data = { night_mode: JSON.stringify(night_mode) };
var context = {