From ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Mon, 23 May 2022 05:52:50 -0500 Subject: Add new service-level option 'trapLinkUrls' (#154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option can be used to allow the user to choose how to handle links (whether to open in the default browser or within the Ferdium service itself) Co-authored-by: André Oliveira --- src/internal-server/app/Controllers/Http/ServiceController.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/internal-server') diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js index 8be5aa9c5..4b26f4747 100644 --- a/src/internal-server/app/Controllers/Http/ServiceController.js +++ b/src/internal-server/app/Controllers/Http/ServiceController.js @@ -48,6 +48,7 @@ class ServiceController { isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, isNotificationEnabled: DEFAULT_SERVICE_SETTINGS.isNotificationEnabled, isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, + trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. spellcheckerLanguage: '', @@ -76,6 +77,7 @@ class ServiceController { customRecipe: false, hasCustomIcon: false, isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, + trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, @@ -219,6 +221,7 @@ class ServiceController { customRecipe: false, hasCustomIcon: DEFAULT_SERVICE_SETTINGS.customIcon, isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, + trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, -- cgit v1.2.3-54-g00ecf