chore: scripts

This commit is contained in:
lencx
2023-01-08 17:04:49 +08:00
parent 335d3e33ba
commit c99f4b7633
10 changed files with 63 additions and 852 deletions

View File

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