From 270f592fc65cd5553ccf7c0dc81431c3efdf67ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 3 Oct 2025 17:21:29 +0200 Subject: feat(frontend): bundle htmx and set every external link to target blank --- index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'index.ts') diff --git a/index.ts b/index.ts index f67b2c6..72679ce 100644 --- a/index.ts +++ b/index.ts @@ -1 +1,6 @@ -console.log("Hello via Bun!"); \ No newline at end of file +import 'htmx.org'; + +document.querySelectorAll("a").forEach(e => { + if (e.href.startsWith(window.location.origin)) return; + e.target = "_blank"; +}); -- cgit v1.2.3