From 2a73c1a85ee8007312877bfe3f2cb62fe082cf0d Mon Sep 17 00:00:00 2001 From: Matthew Bajorek Date: Thu, 25 Jul 2024 15:36:51 -0400 Subject: [PATCH] Use host instead of hostname for proper matching against the window location --- src-tauri/src/inject/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index 3221ba293..71ca81a4c 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -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); } },