diff options
author | 2022-05-15 15:01:36 -0500 | |
---|---|---|
committer | 2022-05-15 15:08:54 -0500 | |
commit | ddeaca3d6776d8828e8d4bf1e849d0f7097982f0 (patch) | |
tree | dd5fc3ed9691c31ed55ce1d9a1b7bb827ae4465e /recipes/steamchat/webview.js | |
parent | Upgrade 'pnpm' to '7.1.0' (diff) | |
download | ferdium-recipes-ddeaca3d6776d8828e8d4bf1e849d0f7097982f0.tar.gz ferdium-recipes-ddeaca3d6776d8828e8d4bf1e849d0f7097982f0.tar.zst ferdium-recipes-ddeaca3d6776d8828e8d4bf1e849d0f7097982f0.zip |
Use a click-handler for slack to capture all click events and open in the same recipe webview
Diffstat (limited to 'recipes/steamchat/webview.js')
-rw-r--r-- | recipes/steamchat/webview.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index 1188c71..3773bad 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js | |||
@@ -30,6 +30,7 @@ module.exports = Ferdium => { | |||
30 | 30 | ||
31 | Ferdium.loop(getMessages); | 31 | Ferdium.loop(getMessages); |
32 | 32 | ||
33 | // TODO: See how this can be moved into the main ferdium app and sent as an ipc message for opening with a new window or same Ferdium recipe's webview based on user's preferences | ||
33 | document.addEventListener('click', event => { | 34 | document.addEventListener('click', event => { |
34 | const link = event.target.closest('a[href^="http"]'); | 35 | const link = event.target.closest('a[href^="http"]'); |
35 | 36 | ||