Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4988 from bsclifton/fix-default-setting
Browse files Browse the repository at this point in the history
Fix default setting behavior for getSetting()
  • Loading branch information
bsclifton authored Oct 20, 2016
2 parents 8a174b5 + e867f41 commit 92b3485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/constants/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const settings = {
ONE_PASSWORD_ENABLED: 'security.passwords.one-password-enabled',
DASHLANE_ENABLED: 'security.passwords.dashlane-enabled',
LAST_PASS_ENABLED: 'security.passwords.last-pass-enabled',
// > phased out with 0.12.5
// > phased out with 0.12.6
SHOW_BOOKMARKS_TOOLBAR_FAVICON: 'bookmarks.toolbar.showFavicon',
SHOW_BOOKMARKS_TOOLBAR_ONLY_FAVICON: 'bookmarks.toolbar.showOnlyFavicon'
}
Expand Down
2 changes: 1 addition & 1 deletion js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const resolveValue = (settingKey, settingsCollection) => {

module.exports.getSetting = (settingKey, settingsCollection) => {
const setting = resolveValue(settingKey, settingsCollection)
if (typeof setting !== 'undefined') return setting
if (typeof setting !== 'undefined' && setting !== null) return setting
return getDefaultSetting(settingKey, settingsCollection)
}

Expand Down

0 comments on commit 92b3485

Please sign in to comment.