From 1f86aae415951b3a5c83d092765fa92337fc29ee Mon Sep 17 00:00:00 2001 From: maTh Date: Mon, 14 Nov 2022 14:54:57 +0100 Subject: fix: sharing service for mailto links for web mail services (#4680) * fix * Update main.js * Update app/i18n/fr/gen.php Co-authored-by: Alexandre Alapetite --- p/scripts/main.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'p/scripts/main.js') diff --git a/p/scripts/main.js b/p/scripts/main.js index 268fd2858..436796b52 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1101,6 +1101,12 @@ function init_stream(stream) { return false; } + el = ev.target.closest('.item.share > a[data-type="email-webmail-firefox-fix"]'); + if (el) { + window.open(el.href); + return false; + } + el = ev.target.closest('.item.share > a[href="POST"]'); if (el) { // Share by POST const f = el.parentElement.querySelector('form'); -- cgit v1.2.3