diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/discord/index.js | 8 | ||||
-rw-r--r-- | recipes/discord/package.json | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/recipes/discord/index.js b/recipes/discord/index.js index a49555f..cd65352 100644 --- a/recipes/discord/index.js +++ b/recipes/discord/index.js | |||
@@ -1,8 +1,8 @@ | |||
1 | module.exports = Ferdium => class Discord extends Ferdium { | 1 | module.exports = Ferdium => class Discord extends Ferdium { |
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | const useragent = window.navigator.userAgent; | 3 | return window.navigator.userAgent.replace('(KHTML, like Gecko)', '(KHTML, like Gecko) discord/0.0.250') |
4 | const parts = useragent.split('(KHTML, like Gecko)'); | 4 | .replace('Electron', 'Discord') |
5 | 5 | .replace('Ferdium', 'Discord') | |
6 | return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Ferdium', 'Discord'); | 6 | .replace('Apple Mac OS X', 'Intel Mac OS X'); |
7 | } | 7 | } |
8 | }; | 8 | }; |
diff --git a/recipes/discord/package.json b/recipes/discord/package.json index f5549d7..b79a293 100644 --- a/recipes/discord/package.json +++ b/recipes/discord/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "discord", | 2 | "id": "discord", |
3 | "name": "Discord", | 3 | "name": "Discord", |
4 | "version": "1.7.4", | 4 | "version": "1.7.5", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://discordapp.com/login", | 7 | "serviceURL": "https://discordapp.com/login", |