pull/380/head
Zef Hemel 2023-02-23 16:09:39 +01:00
parent a11f4b1d57
commit c0128b1090
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ async function actionClickOrActionEnter(
if (url.length <= 1) { if (url.length <= 1) {
return editor.flashNotification("Empty link, ignoring", "error"); return editor.flashNotification("Empty link, ignoring", "error");
} }
if (url.indexOf("://") === -1) { if (url.indexOf("://") === -1 && !url.startsWith("mailto:")) {
url = decodeURIComponent(url); url = decodeURIComponent(url);
// attachment URL, let's fetch as a data url // attachment URL, let's fetch as a data url
const dataUrl = await space.readAttachment(url); const dataUrl = await space.readAttachment(url);