mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: scripts
This commit is contained in:
2
src-tauri/src/scripts/dalle2.js
vendored
2
src-tauri/src/scripts/dalle2.js
vendored
@@ -3,7 +3,7 @@
|
||||
$(function () {
|
||||
document.addEventListener("click", (e) => {
|
||||
const origin = e.target.closest("a");
|
||||
if (!origin.target) return;
|
||||
if (!origin || !origin.target) return;
|
||||
if (origin && origin.href && origin.target !== '_self') {
|
||||
if (/\/(login|signup)$/.test(window.location.href)) {
|
||||
origin.target = '_self';
|
||||
|
||||
Reference in New Issue
Block a user