Skip to content

Commit

Permalink
Merge pull request #75 from brave/fix_shield_icon_logic
Browse files Browse the repository at this point in the history
Only show shield icon as disabled when the shield is explicitly blocked.
  • Loading branch information
yrliou authored Oct 15, 2018
2 parents 9e6c43e + 1a60fd8 commit 27410fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/background/reducers/shieldsPanelReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const updateShieldsIconImage = (state: State) => {
const tab: Tab = state.tabs[tabId]
if (tab) {
const url: string = tab.url
const isShieldsActive: boolean = state.tabs[tabId].braveShields === 'allow'
const isShieldsActive: boolean = state.tabs[tabId].braveShields !== 'block'
setIcon(url, tabId, isShieldsActive)
}
}
Expand Down

0 comments on commit 27410fd

Please sign in to comment.