mirror of
https://github.com/bitwarden/browser
synced 2024-12-24 17:11:55 +01:00
Make error handler more generic
This commit is contained in:
parent
3541f458e5
commit
e922ff0bc2
@ -115,9 +115,7 @@ export class NativeMessagingBackground {
|
||||
error = chrome.runtime.lastError.message;
|
||||
}
|
||||
|
||||
if (error === 'Specified native messaging host not found.' ||
|
||||
error === 'Access to the specified native messaging host is forbidden.' ||
|
||||
error === 'An unexpected error occurred') {
|
||||
if (error != null) {
|
||||
this.messagingService.send('showDialog', {
|
||||
text: this.i18nService.t('desktopIntegrationDisabledDesc'),
|
||||
title: this.i18nService.t('desktopIntegrationDisabledTitle'),
|
||||
|
Loading…
Reference in New Issue
Block a user