chore(deps): install react-grab

This commit is contained in:
plebeius
2025-12-27 17:41:19 +01:00
parent cee682ae52
commit 391e49a62e
3 changed files with 58 additions and 0 deletions
+6
View File
@@ -10,6 +10,12 @@
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
<title>5chan</title>
<!-- React Grab: Hold ⌘C and click any element to provide visual context to AI coding agents (dev only) -->
<script type="module">
if (import.meta.env.DEV) {
import("react-grab");
}
</script>
<script>
// Redirect non-hash URLs to hash URLs on initial load
if (window.location.pathname && window.location.pathname !== '/' && window.location.pathname !== '/index.html' && !window.location.hash) {