File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
23
23
import { StorageService } from 'jslib/abstractions/storage.service' ;
24
24
import { UserService } from 'jslib/abstractions/user.service' ;
25
25
import { VaultTimeoutService } from 'jslib/abstractions/vaultTimeout.service' ;
26
- import { resolve } from '@angular/compiler-cli/src/ngtsc/file_system' ;
27
26
28
27
const RateUrls = {
29
28
[ DeviceType . ChromeExtension ] :
@@ -216,11 +215,9 @@ export class SettingsComponent implements OnInit {
216
215
// Request permission to use the optional permission for nativeMessaging
217
216
if ( ! this . platformUtilsService . isFirefox ( ) ) {
218
217
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 ) ;
222
219
} ) ;
223
-
220
+
224
221
if ( ! granted ) {
225
222
await this . platformUtilsService . showDialog (
226
223
this . i18nService . t ( 'nativeMessaginPermissionErrorDesc' ) , this . i18nService . t ( 'nativeMessaginPermissionErrorTitle' ) ,
You can’t perform that action at this time.
0 commit comments