🐛 Increase compatibility with ChatGPT redirection.

This commit is contained in:
Tw93
2023-04-09 17:54:04 +08:00
parent 897a7805f1
commit 56eae4aac8

View File

@@ -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;