aboutsummaryrefslogtreecommitdiff
path: root/html/mobile.js
blob: ae80a63875518d387174f2ef54ea1b5aec506c7a (plain) (blame)
1
2
3
4
5
6
7
window.isMobile = !("windows" in browser);
if (isMobile) {
  let s = document.createElement("script");
  s.src = "/html/fastclick.js";
  document.head.appendChild(s);
  window.addEventListener("DOMContentLoaded", e => FastClick.attach(document.body));
}