chore: dalle2

This commit is contained in:
lencx
2023-01-07 13:14:03 +08:00
parent 94a8112d45
commit 8863e4575c
5 changed files with 44 additions and 24 deletions

View File

@@ -71,6 +71,7 @@ async function init() {
document.addEventListener("click", (e) => {
const origin = e.target.closest("a");
if (!origin.target) return;
if (origin && origin.href && origin.target !== '_self') {
invoke('open_link', { url: origin.href });
}

View File

@@ -3,6 +3,7 @@
async function init() {
document.addEventListener("click", (e) => {
const origin = e.target.closest("a");
if (!origin.target) return;
if (origin && origin.href && origin.target !== '_self') {
if (/\/(login|signup)$/.test(window.location.href)) {
origin.target = '_self';