aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/office365-owa/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/office365-owa/index.js
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-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/office365-owa/index.js')
-rw-r--r--recipes/office365-owa/index.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/recipes/office365-owa/index.js b/recipes/office365-owa/index.js
index 12994ff..5c59e64 100644
--- a/recipes/office365-owa/index.js
+++ b/recipes/office365-owa/index.js
@@ -1,8 +1,7 @@
1var os = require('os') 1const os = require('os');
2 2
3module.exports = Ferdi => 3module.exports = Ferdi => class Outlook extends Ferdi {
4 class Outlook extends Ferdi { 4 overrideUserAgent() {
5 overrideUserAgent() { 5 return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim();
6 return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(); 6 }
7 } 7};
8 };