Fix error while running permissions.remove (#439)

This commit is contained in:
GyuYong Jung 2017-09-12 23:46:11 +09:00 committed by Buu Nguyen
parent 9797ed133d
commit f625469228
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ chrome.runtime.onMessage.addListener((req, sender, sendRes) => {
function removeUnnecessaryPermissions() {
const whitelist = urls.concat([
'https://github.com/*'
'https://github.com/*',
'https://bitbucket.org/*'
])
chrome.permissions.getAll((permissions) => {
const toBeRemovedUrls = permissions.origins.filter((url) => {