mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
Handle another error message
This commit is contained in:
parent
0a4d59092b
commit
251d0fdde3
@ -68,7 +68,8 @@ export class NativeMessagingBackground {
|
||||
});
|
||||
|
||||
this.port.onDisconnect.addListener(() => {
|
||||
if (BrowserApi.runtimeLastError().message === 'Specified native messaging host not found.') {
|
||||
const error = BrowserApi.runtimeLastError().message;
|
||||
if (error === 'Specified native messaging host not found.' || error === 'Access to the specified native messaging host is forbidden.') {
|
||||
this.messagingService.send('showDialog', {
|
||||
text: this.i18nService.t('desktopIntegrationDisabledDesc'),
|
||||
title: this.i18nService.t('desktopIntegrationDisabledTitle'),
|
||||
|
Loading…
Reference in New Issue
Block a user