aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/discord/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/discord/index.js
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/discord/index.js')
-rw-r--r--recipes/discord/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/discord/index.js b/recipes/discord/index.js
index 9efa7a3..a49555f 100644
--- a/recipes/discord/index.js
+++ b/recipes/discord/index.js
@@ -1,8 +1,8 @@
1module.exports = Ferdi => class Discord extends Ferdi { 1module.exports = Ferdium => class Discord extends Ferdium {
2 overrideUserAgent() { 2 overrideUserAgent() {
3 const useragent = window.navigator.userAgent; 3 const useragent = window.navigator.userAgent;
4 const parts = useragent.split('(KHTML, like Gecko)'); 4 const parts = useragent.split('(KHTML, like Gecko)');
5 5
6 return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Ferdi', 'Discord'); 6 return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Ferdium', 'Discord');
7 } 7 }
8}; 8};