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 authored Jan 25, 2018
2 parents 8d4531e + 7c84b37 commit 04fb183
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 04fb183

Please sign in to comment.