Change default value for the dark-mode preference to ""

Changed the default value for the preference `dark-mode` from
"light" to "", to reflect the fact that `dark-mode` is tri-state
and that the default (no preference set) may be the dark theme
(depending on `prefers-color-scheme`).
This commit is contained in:
psvenk 2019-08-08 12:05:46 -04:00 committed by Omar Roth
parent 23f01c451b
commit 4b75528fd0
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
var toggle_theme = document.getElementById('toggle_theme')
var toggle_theme = document.getElementById('toggle_theme');
toggle_theme.href = 'javascript:void(0);';
toggle_theme.addEventListener('click', function () {

View File

@ -134,7 +134,7 @@ struct ConfigPreferences
comments: {type: Array(String), default: ["youtube", ""], converter: StringToArray},
continue: {type: Bool, default: false},
continue_autoplay: {type: Bool, default: true},
dark_mode: {type: String, default: "light", converter: BoolToString},
dark_mode: {type: String, default: "", converter: BoolToString},
latest_only: {type: Bool, default: false},
listen: {type: Bool, default: false},
local: {type: Bool, default: false},