Optimize package size.

This commit is contained in:
Tw93
2023-04-10 13:03:25 +08:00
parent 56eae4aac8
commit 12cc608c27
4 changed files with 8 additions and 233 deletions

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'|| target === '_new'))) {
if (window.location.host !== hrefUrl.host && (target === '_blank'|| target === '_new')) {
e.preventDefault();
invoke('open_browser', { url: absoluteUrl });
return;