aboutsummaryrefslogtreecommitdiff
path: root/html/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/mobile.js')
-rw-r--r--html/mobile.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/html/mobile.js b/html/mobile.js
index 67930ae..ae80a63 100644
--- a/html/mobile.js
+++ b/html/mobile.js
@@ -1 +1,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));
+}