aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/instagram/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/instagram/index.js')
-rw-r--r--recipes/instagram/index.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/recipes/instagram/index.js b/recipes/instagram/index.js
index d8beaa5..17de727 100644
--- a/recipes/instagram/index.js
+++ b/recipes/instagram/index.js
@@ -1,5 +1,8 @@
1module.exports = Ferdium => class Instagram extends Ferdium { 1module.exports = Ferdium =>
2 overrideUserAgent() { 2 class Instagram extends Ferdium {
3 return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); 3 overrideUserAgent() {
4 } 4 return window.navigator.userAgent
5}; 5 .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '')
6 .trim();
7 }
8 };