From a57a4edcb648d025254ede4d18d267b887ad0b8b Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 5 Sep 2021 15:14:28 +0530 Subject: Remove dependency on 'require' of 'electron' and 'electron/remote' modules. Instead, use the exposed content from the recipe model in main ferdi. --- recipes/skype/webview.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'recipes/skype/webview.js') diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index 6e84d78..dd867ea 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js @@ -2,8 +2,6 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -const { remote: { BrowserWindow } } = require('electron'); - module.exports = (Ferdi, settings) => { const getMessages = function getMessages() { let count = 0; @@ -44,7 +42,7 @@ module.exports = (Ferdi, settings) => { event.stopPropagation(); // TODO: Can we send an ipc event 'open-browser-window' to open the child window? (see the slack recipe for how to send an ipc message) // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/getferdi/ferdi/issues/1697) - const win = new BrowserWindow({ + const win = new Ferdi.BrowserWindow({ width: 800, height: window.innerHeight, minWidth: 600, -- cgit v1.2.3-54-g00ecf