diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/messenger/index.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/messenger/index.js')
-rw-r--r-- | recipes/messenger/index.js | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/recipes/messenger/index.js b/recipes/messenger/index.js index f9b8099..f122bf4 100644 --- a/recipes/messenger/index.js +++ b/recipes/messenger/index.js | |||
@@ -1,11 +1,8 @@ | |||
1 | "use strict"; | 1 | module.exports = (Franz) => class Messenger extends Franz { |
2 | 2 | overrideUserAgent() { | |
3 | module.exports = (Franz) => | 3 | return window.navigator.userAgent.replace( |
4 | class Messenger extends Franz { | 4 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, |
5 | overrideUserAgent() { | 5 | '', |
6 | return window.navigator.userAgent.replace( | 6 | ); |
7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | 7 | } |
8 | "" | 8 | }; |
9 | ); | ||
10 | } | ||
11 | }; | ||