From eb893bfca211204303fc4c0dc115bad249c6145c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 27 Sep 2021 09:03:25 +0530 Subject: refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance --- recipes/steamchat/package.json | 2 +- recipes/steamchat/webview.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'recipes') diff --git a/recipes/steamchat/package.json b/recipes/steamchat/package.json index d06d543..b13ab5d 100644 --- a/recipes/steamchat/package.json +++ b/recipes/steamchat/package.json @@ -1,7 +1,7 @@ { "id": "steamchat", "name": "SteamChat", - "version": "1.3.1", + "version": "1.3.2", "license": "MIT", "config": { "serviceURL": "https://steamcommunity.com/chat", diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index d1d3d15..61d57ad 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js @@ -29,10 +29,9 @@ module.exports = Ferdi => { const link = event.target.closest('a[href^="http"]'); if (link && link.getAttribute('target') === '_top') { - const url = link.getAttribute('href'); event.preventDefault(); event.stopPropagation(); - Ferdi.ipcRenderer.sendToHost('new-window', url); + Ferdi.openNewWindow(link.getAttribute('href')); } }, true); }; -- cgit v1.2.3-54-g00ecf