Skip to content

Commit

Permalink
Merge pull request #756 from teamsynco/mattbajorek/bugfix-hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 authored Jul 27, 2024
2 parents 1544b15 + 2a73c1a commit 25eb63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/inject/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 25eb63c

Please sign in to comment.