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 #12844 from brave/issue-12813-follow-up
Browse files Browse the repository at this point in the history
muonCb expects an array of results
  • Loading branch information
bsclifton committed Jan 25, 2018
1 parent 6c8a992 commit daaff64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,14 @@ function registerPermissionHandler (session, partition) {
tempSettings = siteSettings.getSiteSettingsForURL(appState.get('temporarySiteSettings'), origin)
}

let response = new Array(permissionTypes.length)

if (origin == null) {
muonCb(false)
response.fill(false, 0, permissionTypes.length)
muonCb(response)
return
}

let response = []
for (let i = 0; i < permissionTypes.length; i++) {
const responseSizeThisIteration = response.length
const permission = permissionTypes[i]
Expand Down

0 comments on commit daaff64

Please sign in to comment.