From 7c84b37e18b2946b186ea4b306073e15cd6de2a8 Mon Sep 17 00:00:00 2001 From: bridiver Date: Thu, 25 Jan 2018 11:37:00 -0700 Subject: [PATCH] muonCb expects an array of results --- app/filtering.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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]