diff --git a/app/filtering.js b/app/filtering.js index 43e28d82975..d7906cc0218 100644 --- a/app/filtering.js +++ b/app/filtering.js @@ -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]