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/steamchat/webview.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'recipes/steamchat/webview.js') diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index 93e68ba..63f002f 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js @@ -1,5 +1,3 @@ -const { ipcRenderer } = require('electron'); - module.exports = Ferdi => { const getMessages = function getMessages() { // get new msg count @@ -34,7 +32,7 @@ module.exports = Ferdi => { const url = link.getAttribute('href'); event.preventDefault(); event.stopPropagation(); - ipcRenderer.sendToHost('new-window', url); + Ferdi.ipcRenderer.sendToHost('new-window', url); } }, true); }; -- cgit v1.2.3-70-g09d2