Handle another error message

This commit is contained in:
Hinton 2020-10-21 17:50:27 +02:00
parent 0a4d59092b
commit 251d0fdde3
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ export class NativeMessagingBackground {
}); });
this.port.onDisconnect.addListener(() => { 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', { this.messagingService.send('showDialog', {
text: this.i18nService.t('desktopIntegrationDisabledDesc'), text: this.i18nService.t('desktopIntegrationDisabledDesc'),
title: this.i18nService.t('desktopIntegrationDisabledTitle'), title: this.i18nService.t('desktopIntegrationDisabledTitle'),