From 45302e5bd543c12734c5b810e79d73bd23f57b4a Mon Sep 17 00:00:00 2001 From: Hinton Date: Wed, 7 Oct 2020 15:11:01 +0200 Subject: [PATCH] Add settings toggle to enable/disable browser integration --- proxy/nativemessage.ts | 2 +- src/app/accounts/settings.component.html | 10 +++ src/app/accounts/settings.component.ts | 7 ++ src/locales/en/messages.json | 6 ++ src/main.ts | 6 +- src/main/messaging.main.ts | 8 +++ src/services/nativeMessaging.service.ts | 89 +++++++++++++++++++----- 7 files changed, 107 insertions(+), 21 deletions(-) diff --git a/proxy/nativemessage.ts b/proxy/nativemessage.ts index 911fe904..0af48d98 100644 --- a/proxy/nativemessage.ts +++ b/proxy/nativemessage.ts @@ -1,7 +1,7 @@ /* tslint:disable:no-console */ import IPC from 'ipc'; -// Mostly copied from the example on +// Mostly based on the example from MDN, // https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging export default class NativeMessage { ipc: IPC; diff --git a/src/app/accounts/settings.component.html b/src/app/accounts/settings.component.html index f54b90a2..ffc57907 100644 --- a/src/app/accounts/settings.component.html +++ b/src/app/accounts/settings.component.html @@ -88,6 +88,16 @@ {{'disableFaviconDesc' | i18n}} +
+
+ +
+ {{'enableBrowserIntegrationDesc' | i18n}} +