aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Danny Qiu <dqiu55@gmail.com>2020-09-22 12:43:05 -0700
committerLibravatar GitHub <noreply@github.com>2020-09-22 20:43:05 +0100
commit3938b09dda111546e0b2cb8693f0c8341060f012 (patch)
tree33ae7b87f81d55a04ec9630ddca22795c1466708
parentAdd packaging of recipes as part of build process (#966) (diff)
downloadferdium-app-3938b09dda111546e0b2cb8693f0c8341060f012.tar.gz
ferdium-app-3938b09dda111546e0b2cb8693f0c8341060f012.tar.zst
ferdium-app-3938b09dda111546e0b2cb8693f0c8341060f012.zip
Remove Ferdi string from default user agent (#806)
-rw-r--r--src/helpers/userAgent-helpers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/userAgent-helpers.js b/src/helpers/userAgent-helpers.js
index 7b994c7d4..4929d9578 100644
--- a/src/helpers/userAgent-helpers.js
+++ b/src/helpers/userAgent-helpers.js
@@ -22,7 +22,7 @@ function linux() {
22 return 'X11; Linux x86_64'; 22 return 'X11; Linux x86_64';
23} 23}
24 24
25export default function userAgent(removeChromeVersion = false) { 25export default function userAgent(removeChromeVersion = false, addFerdiVersion = false) {
26 let platformString = ''; 26 let platformString = '';
27 27
28 if (isMac) { 28 if (isMac) {
@@ -39,7 +39,7 @@ export default function userAgent(removeChromeVersion = false) {
39 } 39 }
40 40
41 let applicationString = ''; 41 let applicationString = '';
42 if (!removeChromeVersion) { 42 if (addFerdiVersion) {
43 applicationString = ` Ferdi/${ferdiVersion} Electron/${process.versions.electron}`; 43 applicationString = ` Ferdi/${ferdiVersion} Electron/${process.versions.electron}`;
44 } 44 }
45 45