Skip to content

Commit

Permalink
allow brave-extension to run on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuupy committed May 11, 2018
1 parent d220de1 commit a9d8aa5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/background/events/shieldsEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import actions from '../actions/shieldsPanelActions'
import { BlockDetails } from '../../types/actions/shieldsPanelActions'

chrome.braveShields.onBlocked.addListener((detail: BlockDetails) => {
actions.resourceBlocked(detail)
})
if (chrome.braveShields) {
chrome.braveShields.onBlocked.addListener((detail: BlockDetails) => {
actions.resourceBlocked(detail)
})
} else {
console.log('chrome.braveShields not enabled')
}

0 comments on commit a9d8aa5

Please sign in to comment.