1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-06 18:57:56 +01:00

Revert "more compat checks for chrome permissions api"

This reverts commit 13104bb6e8.
This commit is contained in:
Kyle Spearrin 2019-03-06 20:28:34 -05:00
parent 13104bb6e8
commit 9ee5d1af41

View File

@ -298,7 +298,7 @@ export class BrowserApi {
static hasPermission(permissionName: string): Promise<boolean> {
return new Promise((resolve) => {
if (BrowserApi.isSafariApi || !chrome.permissions || !chrome.permissions.contains) {
if (BrowserApi.isSafariApi) {
resolve(true);
} else {
chrome.permissions.contains({
@ -312,7 +312,7 @@ export class BrowserApi {
static requestPermission(permissionName: string): Promise<boolean> {
return new Promise((resolve) => {
if (BrowserApi.isSafariApi || !chrome.permissions || !chrome.permissions.request) {
if (BrowserApi.isSafariApi) {
resolve(true);
} else {
chrome.permissions.request({