global: snap

This commit is contained in:
nym21
2026-04-18 17:23:12 +02:00
parent 2a93f51e81
commit fd2b93367d
31 changed files with 1004 additions and 988 deletions
+1 -2
View File
@@ -78,8 +78,7 @@ export function init(selected) {
showPanel("block");
},
onCubeClick: (cube) => {
const hash = cube.dataset.hash;
if (hash) history.pushState(null, "", `/block/${hash}`);
history.pushState(null, "", cube.href);
navigate();
selectCube(cube);
},