aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-07 14:55:39 +0000
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-07 14:55:39 +0000
commit3a809d2571f8df178c436f463c9aade25a34c96e (patch)
tree6a4a0485b5650320afe5c1c2e61e9a8987db83a3 /index.ts
parente8da79df02b9045146e2a0cb9e035f14a68537c6 (diff)
parent14f30577f9b5f76d288abce6ba19bf6150936401 (diff)
Merge pull request '[Feat] Change tags in now' (#1) from feat/change-tags into main
Reviewed-on: https://git.anhgelus.world/anhgelus/now/pulls/1
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/index.ts b/index.ts
index e48401f..68b6f19 100644
--- a/index.ts
+++ b/index.ts
@@ -1,13 +1,4 @@
function setupEvents() {
- document.querySelectorAll<HTMLElement>(".tag")?.forEach(t => {
- t.addEventListener("click", _ => {
- const link = t.getAttribute("data-href")
- if (link === null || link === "") return
- if (!link.startsWith(window.location.origin) && link.startsWith("https://")) window.open(link)
- else changePage(link)
- })
- })
-
document.querySelectorAll<HTMLAnchorElement>("a")?.forEach(a => {
a.addEventListener("click", e => {
if (!a.href.startsWith(window.location.origin)) return