From ddeaca3d6776d8828e8d4bf1e849d0f7097982f0 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 15 May 2022 15:01:36 -0500 Subject: Use a click-handler for slack to capture all click events and open in the same recipe webview --- recipes/zoom/webview.js | 1 + 1 file changed, 1 insertion(+) (limited to 'recipes/zoom') diff --git a/recipes/zoom/webview.js b/recipes/zoom/webview.js index 0dd0e38..7612d83 100644 --- a/recipes/zoom/webview.js +++ b/recipes/zoom/webview.js @@ -26,6 +26,7 @@ module.exports = Ferdium => { Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); + // 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 document.addEventListener('click', event => { const link = event.target.closest('a[href^="http"]'); const button = event.target.closest('button[title^="http"]'); -- cgit v1.2.3-70-g09d2