Skip to content

Commit

Permalink
Merge pull request #22 from Snuupy/chrome
Browse files Browse the repository at this point in the history
allow brave-extension to run on chrome
  • Loading branch information
bbondy committed May 11, 2018
2 parents d220de1 + a9d8aa5 commit fa36de9
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 fa36de9

Please sign in to comment.