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:
parent
13104bb6e8
commit
9ee5d1af41
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user