Handle another error message
This commit is contained in:
parent
0a4d59092b
commit
251d0fdde3
|
@ -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'),
|
||||||
|
|
Loading…
Reference in New Issue