This commit is contained in:
Maciej Caderek
2022-02-22 03:26:31 +01:00
parent 34b352c6c4
commit 2baf02dd60
16 changed files with 151 additions and 119 deletions

View File

@@ -203,7 +203,7 @@ const main = async () => {
);
const $board = document.querySelector<HTMLImageElement>("#board");
$board?.appendChild(board.canvas);
$board?.prepend(board.canvas);
/* Restore game from the url */
@@ -219,6 +219,9 @@ const main = async () => {
));
/* Register events */
document.addEventListener("dblclick", function (el) {
el.preventDefault();
});
if (!state.mobile) {
const keyMapping: { [key: string]: () => void } = {