diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/steamchat/package.json | 2 | ||||
-rw-r--r-- | recipes/steamchat/webview.js | 3 |
2 files changed, 2 insertions, 3 deletions
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 | }; |