From 50cfe923866aed9e4ef14fdeca91102bf2e0f2aa Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 16 May 2022 19:29:14 -0500 Subject: Partially revert ddeaca3d6776d8 (remove clickHandler for slack since it didn't fix #145 --- recipes/slack/package.json | 2 +- recipes/slack/webview.js | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 6d18dac..9105f31 100644 --- a/recipes/slack/package.json +++ b/recipes/slack/package.json @@ -1,7 +1,7 @@ { "id": "slack", "name": "Slack", - "version": "1.4.1", + "version": "1.4.2", "license": "MIT", "config": { "serviceURL": "https://{teamId}.slack.com", diff --git a/recipes/slack/webview.js b/recipes/slack/webview.js index 652b586..b3722f0 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js @@ -75,18 +75,4 @@ module.exports = Ferdium => { }, 4000); 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"]'); - - if (link || button) { - const url = link ? link.getAttribute('href') : button.getAttribute('title'); - - event.preventDefault(); - event.stopPropagation(); - window.location.href = url; - } - }, true); }; -- cgit v1.2.3-54-g00ecf