From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/whatsapp/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/whatsapp/index.js') 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 @@ -module.exports = (Ferdi) => class Messenger extends Ferdi { +module.exports = (Ferdium) => class Messenger extends Ferdium { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); + return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); } modifyRequestHeaders() { return [ { headers: { - 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), + 'user-agent': window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(), }, requestFilters: { urls: ['*://*/*'], -- cgit v1.2.3-70-g09d2