diff options
author | Kishan B <kishancs46@gmail.com> | 2022-07-03 18:21:44 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-07-04 05:17:19 +0530 |
commit | 7eef5c339f73b02494ecea74c5ea084c842b1685 (patch) | |
tree | 130ed90ccb541670e7b7e420f351d671e5d33bbe /recipes | |
parent | Fix pre-commit hooks (diff) | |
download | ferdium-recipes-7eef5c339f73b02494ecea74c5ea084c842b1685.tar.gz ferdium-recipes-7eef5c339f73b02494ecea74c5ea084c842b1685.tar.zst ferdium-recipes-7eef5c339f73b02494ecea74c5ea084c842b1685.zip |
Add user agent fix for ARM macs (Fix #31)
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", |