fix(react grab): restore dev toolbar

This commit is contained in:
Tommaso Casaburi
2026-04-27 15:01:32 +07:00
parent b0b5d45376
commit cb9c830b5a
3 changed files with 31 additions and 55 deletions
+10
View File
@@ -55,6 +55,16 @@
</script>
<title>5chan — Decentralized Imageboard</title>
<!-- React Grab: toolbar activation only; keyboard shortcut disabled to avoid copy/paste conflicts (dev only) -->
<script type="module">
if (import.meta.env.DEV) {
import("react-grab/core").then((m) => {
const api = m.init({ activationKey: () => false });
window.__REACT_GRAB__ = api;
window.dispatchEvent(new CustomEvent("react-grab:init", { detail: api }));
});
}
</script>
<script>
// Redirect non-hash URLs before the app bundle is requested.
if (