aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/skype/webview.js')
-rw-r--r--recipes/skype/webview.js10
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"; 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 }