Safari Blocks Email Widget from Opening
-
“This website has been blocked from automatically composing an email.” See here for more details of this problem in general. Bottom line is it doesn’t like the plugin trying to open a
mailto:
URL in a new window/tab. My fix was to use JavaScript to change the value ofonclick
.document.querySelectorAll("a.heateor_sss_email").forEach(
(link) => link.setAttribute(
"onclick",
link.getAttribute("onclick").replace(
/window\.open\((.+?),\s*(["'])_blank\2\s*\)(;?)$/,
"window.location.href = $1$3",
),
),
);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.