Skip to content

Commit ff6f032

Browse files
Hintoncscharf
authored andcommitted
Fix linting warnings
1 parent c58e749 commit ff6f032

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/popup/settings/settings.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
2323
import { StorageService } from 'jslib/abstractions/storage.service';
2424
import { UserService } from 'jslib/abstractions/user.service';
2525
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service';
26-
import { resolve } from '@angular/compiler-cli/src/ngtsc/file_system';
2726

2827
const RateUrls = {
2928
[DeviceType.ChromeExtension]:
@@ -216,11 +215,9 @@ export class SettingsComponent implements OnInit {
216215
// Request permission to use the optional permission for nativeMessaging
217216
if (!this.platformUtilsService.isFirefox()) {
218217
const granted = await new Promise((resolve, reject) => {
219-
chrome.permissions.request({permissions: ['nativeMessaging']}, function(granted) {
220-
resolve(granted);
221-
});
218+
chrome.permissions.request({permissions: ['nativeMessaging']}, resolve);
222219
});
223-
220+
224221
if (!granted) {
225222
await this.platformUtilsService.showDialog(
226223
this.i18nService.t('nativeMessaginPermissionErrorDesc'), this.i18nService.t('nativeMessaginPermissionErrorTitle'),

0 commit comments

Comments
 (0)