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 --- all.json | 2 +- recipes/steamchat/package.json | 2 +- recipes/steamchat/webview.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/all.json b/all.json index ac6d0c8..2a0cf78 100644 --- a/all.json +++ b/all.json @@ -1494,7 +1494,7 @@ "featured": false, "id": "steamchat", "name": "SteamChat", - "version": "1.3.1", + "version": "1.3.2", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/steamchat/icon.svg" } 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