diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..7c83311 Binary files /dev/null and b/favicon.ico differ diff --git a/game.js b/game.js index 31e0758..39dc885 100644 --- a/game.js +++ b/game.js @@ -1514,7 +1514,7 @@ function setMoveMode(mode) { } function clickEvent(e) { - if (e instanceof TouchEvent) { + if (window.TouchEvent && e instanceof TouchEvent) { MOBILE=true e.preventDefault() } else { @@ -1683,7 +1683,7 @@ function getGridCoords(pos) { } function releaseEvent(e) { - if (e instanceof TouchEvent) { + if (window.TouchEvent && e instanceof TouchEvent) { e.preventDefault() }