fix(codebase audit): preserve cleanup without regressions

Fix codebase audit regressions while preserving UI/UX behavior and adding review-driven hardening.
This commit is contained in:
Tommaso Casaburi
2026-04-24 15:48:07 +07:00
committed by GitHub
parent 5df994b2c7
commit 5dc5408a15
70 changed files with 1478 additions and 518 deletions
+1 -8
View File
@@ -55,15 +55,8 @@
</script>
<title>5chan — Decentralized Imageboard</title>
<!-- React Grab: toolbar-only activation; keyboard shortcut disabled to avoid copy/paste conflicts (dev only) -->
<script type="module">
if (import.meta.env.DEV) {
import("react-grab/core").then((m) => m.init({ activationShortcut: () => false }));
}
</script>
<script>
// Redirect non-hash URLs to hash URLs on initial load
// Skip redirect for file:// protocol (Electron) or if pathname ends with index.html
// Redirect non-hash URLs before the app bundle is requested.
if (
window.location.protocol !== 'file:' &&
window.location.pathname &&