diff options
author | 2022-06-14 17:50:18 +0100 | |
---|---|---|
committer | 2022-06-14 16:50:18 +0000 | |
commit | c0ea1709529b7f89efb6caaa7450eab1c072461b (patch) | |
tree | 81527e9eb2a5c7859a824810e861fd04ac726e95 /src | |
parent | Feature: Progress Indicator for page loading (#248) (diff) | |
download | ferdium-app-c0ea1709529b7f89efb6caaa7450eab1c072461b.tar.gz ferdium-app-c0ea1709529b7f89efb6caaa7450eab1c072461b.tar.zst ferdium-app-c0ea1709529b7f89efb6caaa7450eab1c072461b.zip |
Add startpage.com as option search-engine and make it the default for new users (#251)
Diffstat (limited to 'src')
-rw-r--r-- | src/config.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts index 6b754e643..43dbb40bf 100644 --- a/src/config.ts +++ b/src/config.ts | |||
@@ -76,14 +76,18 @@ export const NAVIGATION_BAR_BEHAVIOURS = { | |||
76 | never: 'Never show navigation bar', | 76 | never: 'Never show navigation bar', |
77 | }; | 77 | }; |
78 | 78 | ||
79 | export const SEARCH_ENGINE_STARTPAGE = 'startPage'; | ||
79 | export const SEARCH_ENGINE_GOOGLE = 'google'; | 80 | export const SEARCH_ENGINE_GOOGLE = 'google'; |
80 | export const SEARCH_ENGINE_DDG = 'duckDuckGo'; | 81 | export const SEARCH_ENGINE_DDG = 'duckDuckGo'; |
81 | export const SEARCH_ENGINE_NAMES = { | 82 | export const SEARCH_ENGINE_NAMES = { |
83 | [SEARCH_ENGINE_STARTPAGE]: 'Startpage', | ||
82 | [SEARCH_ENGINE_GOOGLE]: 'Google', | 84 | [SEARCH_ENGINE_GOOGLE]: 'Google', |
83 | [SEARCH_ENGINE_DDG]: 'DuckDuckGo', | 85 | [SEARCH_ENGINE_DDG]: 'DuckDuckGo', |
84 | }; | 86 | }; |
85 | 87 | ||
86 | export const SEARCH_ENGINE_URLS = { | 88 | export const SEARCH_ENGINE_URLS = { |
89 | [SEARCH_ENGINE_STARTPAGE]: ({ searchTerm }) => | ||
90 | `https://www.startpage.com/sp/search?query=${searchTerm}`, | ||
87 | [SEARCH_ENGINE_GOOGLE]: ({ searchTerm }) => | 91 | [SEARCH_ENGINE_GOOGLE]: ({ searchTerm }) => |
88 | `https://www.google.com/search?q=${searchTerm}`, | 92 | `https://www.google.com/search?q=${searchTerm}`, |
89 | [SEARCH_ENGINE_DDG]: ({ searchTerm }) => | 93 | [SEARCH_ENGINE_DDG]: ({ searchTerm }) => |
@@ -253,7 +257,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
253 | sidebarServicesLocation: SIDEBAR_SERVICES_LOCATION_TOPLEFT, | 257 | sidebarServicesLocation: SIDEBAR_SERVICES_LOCATION_TOPLEFT, |
254 | iconSize: iconSizeBias, | 258 | iconSize: iconSizeBias, |
255 | navigationBarBehaviour: 'custom', | 259 | navigationBarBehaviour: 'custom', |
256 | searchEngine: SEARCH_ENGINE_DDG, | 260 | searchEngine: SEARCH_ENGINE_STARTPAGE, |
257 | useVerticalStyle: false, | 261 | useVerticalStyle: false, |
258 | hideRecipesButton: false, | 262 | hideRecipesButton: false, |
259 | useGrayscaleServices: false, | 263 | useGrayscaleServices: false, |