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

Commit

Permalink
Fix shields down crashing Brave
Browse files Browse the repository at this point in the history
Fix #6034

Auditors: @bridiver
  • Loading branch information
bbondy authored and bridiver committed Dec 14, 2016
1 parent 33965fc commit f9ca52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/state/siteSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports.activeSettings = (siteSettings, appState, appConfig) => {
Object.keys(appConfig.resourceNames).forEach((resourceName) => {
let name = appConfig.resourceNames[resourceName]
settings[name] = (() => {
if (settings.shieldsUp === false && appConfig[resourceName].shields !== false) {
if (settings.shieldsUp === false && appConfig[name].shields !== false) {
return false
}

Expand Down

0 comments on commit f9ca52f

Please sign in to comment.