aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--all.json2
-rw-r--r--recipes/steamchat/package.json2
-rw-r--r--recipes/steamchat/webview.js3
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 @@
1494 "featured": false, 1494 "featured": false,
1495 "id": "steamchat", 1495 "id": "steamchat",
1496 "name": "SteamChat", 1496 "name": "SteamChat",
1497 "version": "1.3.1", 1497 "version": "1.3.2",
1498 "icons": { 1498 "icons": {
1499 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/steamchat/icon.svg" 1499 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/steamchat/icon.svg"
1500 } 1500 }
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 @@
1{ 1{
2 "id": "steamchat", 2 "id": "steamchat",
3 "name": "SteamChat", 3 "name": "SteamChat",
4 "version": "1.3.1", 4 "version": "1.3.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://steamcommunity.com/chat", 7 "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 => {
29 const link = event.target.closest('a[href^="http"]'); 29 const link = event.target.closest('a[href^="http"]');
30 30
31 if (link && link.getAttribute('target') === '_top') { 31 if (link && link.getAttribute('target') === '_top') {
32 const url = link.getAttribute('href');
33 event.preventDefault(); 32 event.preventDefault();
34 event.stopPropagation(); 33 event.stopPropagation();
35 Ferdi.ipcRenderer.sendToHost('new-window', url); 34 Ferdi.openNewWindow(link.getAttribute('href'));
36 } 35 }
37 }, true); 36 }, true);
38}; 37};