diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-05-23 05:52:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 10:52:50 +0000 |
commit | ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf (patch) | |
tree | 51d72e5c62e4b32e72adb6647faf7216f69ab952 /src/internal-server | |
parent | 6.0.0-nightly.44 [skip ci] (diff) | |
download | ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.tar.gz ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.tar.zst ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.zip |
Add new service-level option 'trapLinkUrls' (#154)
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 <oliveira.andrerodrigues95@gmail.com>
Diffstat (limited to 'src/internal-server')
-rw-r--r-- | src/internal-server/app/Controllers/Http/ServiceController.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
48 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, | 48 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, |
49 | isNotificationEnabled: DEFAULT_SERVICE_SETTINGS.isNotificationEnabled, | 49 | isNotificationEnabled: DEFAULT_SERVICE_SETTINGS.isNotificationEnabled, |
50 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 50 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
51 | trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, | ||
51 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, | 52 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, |
52 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. | 53 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. |
53 | spellcheckerLanguage: '', | 54 | spellcheckerLanguage: '', |
@@ -76,6 +77,7 @@ class ServiceController { | |||
76 | customRecipe: false, | 77 | customRecipe: false, |
77 | hasCustomIcon: false, | 78 | hasCustomIcon: false, |
78 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 79 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
80 | trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, | ||
79 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. | 81 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. |
80 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, | 82 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, |
81 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, | 83 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, |
@@ -219,6 +221,7 @@ class ServiceController { | |||
219 | customRecipe: false, | 221 | customRecipe: false, |
220 | hasCustomIcon: DEFAULT_SERVICE_SETTINGS.customIcon, | 222 | hasCustomIcon: DEFAULT_SERVICE_SETTINGS.customIcon, |
221 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 223 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
224 | trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, | ||
222 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. | 225 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. |
223 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, | 226 | isEnabled: DEFAULT_SERVICE_SETTINGS.isEnabled, |
224 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, | 227 | isMuted: DEFAULT_SERVICE_SETTINGS.isMuted, |