This commit is contained in:
Tw93
2024-07-27 22:14:16 +08:00

View File

@@ -176,7 +176,7 @@ document.addEventListener('DOMContentLoaded', () => {
// case: download from dataURL -> convert dataURL -> // case: download from dataURL -> convert dataURL ->
} else if (url.startsWith('data:')) { } else if (url.startsWith('data:')) {
downloadFromDataUri(url, filename); downloadFromDataUri(url, filename);
} else if (isDownloadLink(url) || anchorEle.hostname !== window.location.host) { } else if (isDownloadLink(url) || anchorEle.host !== window.location.host) {
handleExternalLink(e, url); handleExternalLink(e, url);
} }
}, },