diff options
author | 2020-04-19 16:40:55 +0000 | |
---|---|---|
committer | 2020-04-19 16:40:55 +0000 | |
commit | 554a9af6b5248d0ec66264c1c0c51e3f26f47642 (patch) | |
tree | 5b78ae5167579a1dc5c8209cb0e957bb7916418e /uncompressed/messenger | |
parent | Remove svg size check preventing repackaging (diff) | |
download | ferdium-recipes-554a9af6b5248d0ec66264c1c0c51e3f26f47642.tar.gz ferdium-recipes-554a9af6b5248d0ec66264c1c0c51e3f26f47642.tar.zst ferdium-recipes-554a9af6b5248d0ec66264c1c0c51e3f26f47642.zip |
Fix user agents override and bump minor versions
Diffstat (limited to 'uncompressed/messenger')
-rw-r--r-- | uncompressed/messenger/index.js | 15 | ||||
-rw-r--r-- | uncompressed/messenger/package.json | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/uncompressed/messenger/index.js b/uncompressed/messenger/index.js index dd10055..f9b8099 100644 --- a/uncompressed/messenger/index.js +++ b/uncompressed/messenger/index.js | |||
@@ -1,8 +1,11 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | module.exports = Franz => class Messenger extends Franz { | 3 | module.exports = (Franz) => |
4 | overrideUserAgent() { | 4 | class Messenger extends Franz { |
5 | return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); | 5 | overrideUserAgent() { |
6 | } | 6 | return window.navigator.userAgent.replace( |
7 | 7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | |
8 | }; \ No newline at end of file | 8 | "" |
9 | ); | ||
10 | } | ||
11 | }; | ||
diff --git a/uncompressed/messenger/package.json b/uncompressed/messenger/package.json index 30cbbdf..b26d37d 100644 --- a/uncompressed/messenger/package.json +++ b/uncompressed/messenger/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "messenger", | 2 | "id": "messenger", |
3 | "name": "Messenger", | 3 | "name": "Messenger", |
4 | "version": "1.0.8", | 4 | "version": "1.1.0", |
5 | "description": "Facebook Messenger", | 5 | "description": "Facebook Messenger", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |