From 56eae4aac85f5bf4f0d687dd1bcdf39779fd5275 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 9 Apr 2023 17:54:04 +0800 Subject: [PATCH] :bug: Increase compatibility with ChatGPT redirection. --- 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 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;