aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype
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/skype
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/skype')
-rw-r--r--recipes/skype/index.js19
-rw-r--r--recipes/skype/webview.js10
2 files changed, 12 insertions, 17 deletions
diff --git a/recipes/skype/index.js b/recipes/skype/index.js
index f9b8099..f122bf4 100644
--- a/recipes/skype/index.js
+++ b/recipes/skype/index.js
@@ -1,11 +1,8 @@
1"use strict"; 1module.exports = (Franz) => class Messenger extends Franz {
2 2 overrideUserAgent() {
3module.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 };
diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js
index e135be1..f8b4d7b 100644
--- a/recipes/skype/webview.js
+++ b/recipes/skype/webview.js
@@ -1,6 +1,4 @@
1"use strict"; 1const { remote: { BrowserWindow } } = require('electron');
2
3const { remote: { BrowserWindow } } = require("electron");
4const path = require('path'); 2const path = require('path');
5 3
6module.exports = (Franz, settings) => { 4module.exports = (Franz, settings) => {
@@ -37,13 +35,13 @@ module.exports = (Franz, settings) => {
37 if (url.includes('views/imgpsh_fullsize_anim')) { 35 if (url.includes('views/imgpsh_fullsize_anim')) {
38 event.preventDefault(); 36 event.preventDefault();
39 event.stopPropagation(); 37 event.stopPropagation();
40 let win = new BrowserWindow({ 38 const win = new BrowserWindow({
41 width: 800, 39 width: 800,
42 height: window.innerHeight, 40 height: window.innerHeight,
43 minWidth: 600, 41 minWidth: 600,
44 webPreferences: { 42 webPreferences: {
45 partition: `persist:service-${settings.id}` 43 partition: `persist:service-${settings.id}`,
46 } 44 },
47 }); 45 });
48 win.loadURL(url); 46 win.loadURL(url);
49 } 47 }