diff options
Diffstat (limited to 'recipes/skype')
-rw-r--r-- | recipes/skype/index.js | 19 | ||||
-rw-r--r-- | recipes/skype/webview.js | 10 |
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"; | 1 | module.exports = (Franz) => class Messenger extends Franz { |
2 | 2 | overrideUserAgent() { | |
3 | module.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"; | 1 | const { remote: { BrowserWindow } } = require('electron'); |
2 | |||
3 | const { remote: { BrowserWindow } } = require("electron"); | ||
4 | const path = require('path'); | 2 | const path = require('path'); |
5 | 3 | ||
6 | module.exports = (Franz, settings) => { | 4 | module.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 | } |