Merge pull request #756 from teamsynco/mattbajorek/bugfix-hostname

This commit is contained in:
Tw93
2024-07-27 20:04:12 +08:00
committed by GitHub

View File

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