aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/discord/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/discord/webview.js')
-rw-r--r--recipes/discord/webview.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes/discord/webview.js b/recipes/discord/webview.js
index 0dd0e38..7612d83 100644
--- a/recipes/discord/webview.js
+++ b/recipes/discord/webview.js
@@ -26,6 +26,7 @@ module.exports = Ferdium => {
26 26
27 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); 27 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
28 28
29 // 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
29 document.addEventListener('click', event => { 30 document.addEventListener('click', event => {
30 const link = event.target.closest('a[href^="http"]'); 31 const link = event.target.closest('a[href^="http"]');
31 const button = event.target.closest('button[title^="http"]'); 32 const button = event.target.closest('button[title^="http"]');