diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index dfe308e..bfb55a2 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -116,7 +116,7 @@ document.addEventListener('DOMContentLoaded', () => { const absoluteUrl = hrefUrl.href; // Handling external link redirection. - if (window.location.host !== hrefUrl.host && target === '_blank') { + if (window.location.host !== hrefUrl.host && (target === '_blank'|| target === '_new'))) { e.preventDefault(); invoke('open_browser', { url: absoluteUrl }); return;