diff options
author | 2020-02-01 11:33:41 +0100 | |
---|---|---|
committer | 2020-02-01 11:33:41 +0100 | |
commit | cdaa715c8c2672c9af63682dd26e2b5f52597011 (patch) | |
tree | 2d7cd4559e5cc4843ec70b3fb480af123f3424e3 /uncompressed/discord/index.js | |
parent | #35 Add fixed Hangouts Chat recipe (diff) | |
download | ferdium-recipes-cdaa715c8c2672c9af63682dd26e2b5f52597011.tar.gz ferdium-recipes-cdaa715c8c2672c9af63682dd26e2b5f52597011.tar.zst ferdium-recipes-cdaa715c8c2672c9af63682dd26e2b5f52597011.zip |
getferdi/ferdi#319 Add fix for discord notifications
Diffstat (limited to 'uncompressed/discord/index.js')
-rw-r--r-- | uncompressed/discord/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/uncompressed/discord/index.js b/uncompressed/discord/index.js index 629d7c7..dd2bcf2 100644 --- a/uncompressed/discord/index.js +++ b/uncompressed/discord/index.js | |||
@@ -1,10 +1,8 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class Discord extends Franz { | 1 | module.exports = Franz => class Discord extends Franz { |
4 | overrideUserAgent() { | 2 | overrideUserAgent() { |
5 | const useragent = window.navigator.userAgent; | 3 | const useragent = window.navigator.userAgent; |
6 | const parts = useragent.split('(KHTML, like Gecko)'); | 4 | const parts = useragent.split('(KHTML, like Gecko)'); |
5 | |||
7 | return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Franz', 'Discord'); | 6 | return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Franz', 'Discord'); |
8 | } | 7 | } |
9 | 8 | }; | |
10 | }; \ No newline at end of file | ||