mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Fix for boolean prefs
This commit is contained in:
@@ -46,7 +46,8 @@ const PrefsStore = {
|
||||
|
||||
getters: {
|
||||
getPreference: state => (id, default_) => {
|
||||
return state.prefs[id] || default_
|
||||
const pref = state.prefs[id]
|
||||
return pref != null ? pref : default_
|
||||
},
|
||||
|
||||
getPreferenceBoolean: (_, getters) => (...args) => {
|
||||
|
||||
Reference in New Issue
Block a user