diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/skype/webview.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-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/webview.js')
-rw-r--r-- | recipes/skype/webview.js | 10 |
1 files changed, 4 insertions, 6 deletions
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 | } |