diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/whatsapp/index.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/whatsapp/index.js')
-rw-r--r-- | recipes/whatsapp/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/whatsapp/index.js b/recipes/whatsapp/index.js index 4caf116..80eaf51 100644 --- a/recipes/whatsapp/index.js +++ b/recipes/whatsapp/index.js | |||
@@ -1,13 +1,13 @@ | |||
1 | module.exports = (Ferdi) => class Messenger extends Ferdi { | 1 | module.exports = (Ferdium) => class Messenger extends Ferdium { |
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); |
4 | } | 4 | } |
5 | 5 | ||
6 | modifyRequestHeaders() { | 6 | modifyRequestHeaders() { |
7 | return [ | 7 | return [ |
8 | { | 8 | { |
9 | headers: { | 9 | headers: { |
10 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), | 10 | 'user-agent': window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(), |
11 | }, | 11 | }, |
12 | requestFilters: { | 12 | requestFilters: { |
13 | urls: ['*://*/*'], | 13 | urls: ['*://*/*'], |