Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Dec 14, 2021
1 parent e87be3d commit 478a6db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/mozillaVpn.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ const MozillaVPN = {
},

async bothPermissionsEnabled() {
const proxyPermissionEnabled = await browser.permissions.contains({ permissions: ["proxy"] });
const nativeMessagingPermissionEnabled = await browser.permissions.contains({ permissions: ["nativeMessaging"] });
return (proxyPermissionEnabled && nativeMessagingPermissionEnabled);
return await browser.permissions.contains({ permissions: ["proxy", "nativeMessaging"] });
},


Expand Down

0 comments on commit 478a6db

Please sign in to comment.