mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
+1
-8
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user