mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
Fix linting warnings
This commit is contained in:
parent
ab759a4746
commit
559a18a32d
@ -23,7 +23,6 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|||||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||||
import { UserService } from 'jslib/abstractions/user.service';
|
import { UserService } from 'jslib/abstractions/user.service';
|
||||||
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
|
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
|
||||||
import { resolve } from '@angular/compiler-cli/src/ngtsc/file_system';
|
|
||||||
|
|
||||||
const RateUrls = {
|
const RateUrls = {
|
||||||
[DeviceType.ChromeExtension]:
|
[DeviceType.ChromeExtension]:
|
||||||
@ -216,9 +215,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
// Request permission to use the optional permission for nativeMessaging
|
// Request permission to use the optional permission for nativeMessaging
|
||||||
if (!this.platformUtilsService.isFirefox()) {
|
if (!this.platformUtilsService.isFirefox()) {
|
||||||
const granted = await new Promise((resolve, reject) => {
|
const granted = await new Promise((resolve, reject) => {
|
||||||
chrome.permissions.request({permissions: ['nativeMessaging']}, function(granted) {
|
chrome.permissions.request({permissions: ['nativeMessaging']}, resolve);
|
||||||
resolve(granted);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!granted) {
|
if (!granted) {
|
||||||
|
Loading…
Reference in New Issue
Block a user