diff options
author | vantezzen <hello@vantezzen.io> | 2019-09-28 12:10:25 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-09-28 12:10:25 +0200 |
commit | 728d339739b63e9bb59e457e4a84fe9a65b93fc9 (patch) | |
tree | a0fc6180ea26fa9ef397458e8eb6491031d6437d /uncompressed/discord/index.js | |
parent | Add list of recipes (diff) | |
download | ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.gz ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.zst ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.zip |
Add uncompressed recipes
Diffstat (limited to 'uncompressed/discord/index.js')
-rw-r--r-- | uncompressed/discord/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uncompressed/discord/index.js b/uncompressed/discord/index.js new file mode 100644 index 0000000..629d7c7 --- /dev/null +++ b/uncompressed/discord/index.js | |||
@@ -0,0 +1,10 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class Discord extends Franz { | ||
4 | overrideUserAgent() { | ||
5 | const useragent = window.navigator.userAgent; | ||
6 | const parts = useragent.split('(KHTML, like Gecko)'); | ||
7 | return parts.join('(KHTML, like Gecko) discord/0.0.250').replace('Electron', 'Discord').replace('Franz', 'Discord'); | ||
8 | } | ||
9 | |||
10 | }; \ No newline at end of file | ||