aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/steamchat/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-05 15:14:28 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-09-05 18:00:26 +0530
commita57a4edcb648d025254ede4d18d267b887ad0b8b (patch)
treec8b75e58cf108a55608f729218885abdb07fd42d /recipes/steamchat/webview.js
parentAdd ability to use self-hosted option for 'youtrack' service (fixes #671) (diff)
downloadferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.gz
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.zst
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.zip
Remove dependency on 'require' of 'electron' and 'electron/remote' modules.
Instead, use the exposed content from the recipe model in main ferdi.
Diffstat (limited to 'recipes/steamchat/webview.js')
-rw-r--r--recipes/steamchat/webview.js4
1 files changed, 1 insertions, 3 deletions
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 @@
1const { ipcRenderer } = require('electron');
2
3module.exports = Ferdi => { 1module.exports = Ferdi => {
4 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
5 // get new msg count 3 // get new msg count
@@ -34,7 +32,7 @@ module.exports = Ferdi => {
34 const url = link.getAttribute('href'); 32 const url = link.getAttribute('href');
35 event.preventDefault(); 33 event.preventDefault();
36 event.stopPropagation(); 34 event.stopPropagation();
37 ipcRenderer.sendToHost('new-window', url); 35 Ferdi.ipcRenderer.sendToHost('new-window', url);
38 } 36 }
39 }, true); 37 }, true);
40}; 38};