1
0
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:
Hinton 2020-10-21 17:50:27 +02:00
parent 0a4d59092b
commit 251d0fdde3

View File

@ -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'),