mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 09:54:35 +01:00
Merge pull request #1521 from Hinton/hotfix/native-messaging-error-handling
Native messaging, generic error handling
This commit is contained in:
commit
e1421b34d5
@ -115,9 +115,7 @@ export class NativeMessagingBackground {
|
|||||||
error = chrome.runtime.lastError.message;
|
error = chrome.runtime.lastError.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error === 'Specified native messaging host not found.' ||
|
if (error != null) {
|
||||||
error === 'Access to the specified native messaging host is forbidden.' ||
|
|
||||||
error === 'An unexpected error occurred') {
|
|
||||||
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
Block a user