mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(react grab): restore dev toolbar
This commit is contained in:
+10
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user