1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

Fix linting warnings

This commit is contained in:
Hinton 2021-01-25 21:27:17 +01:00
parent ab759a4746
commit 559a18a32d

View File

@ -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) {