summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2014-07-06 13:51:48 -0400
committerBen Burwell <bburwell1@gmail.com>2014-07-06 13:51:48 -0400
commit5af3844e12f4d593cca50d8a3cdcc842a3ffb0cf (patch)
treea7f77fc1f9c85e5b6781b4e7bb9a9d5cdc3154e1 /_layouts
parent06427d18091e60d8c2b3801feec461c8c906f894 (diff)
Don't double-tap targets
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/master.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/_layouts/master.html b/_layouts/master.html
index f1789a4..df9f165 100644
--- a/_layouts/master.html
+++ b/_layouts/master.html
@@ -135,7 +135,9 @@
var es = document.getElementsByTagName('a');
for (var i = 0; i < es.length; i++) {
es[i].addEventListener('touchstart', function() {
- window.location.href = this.href;
+ if (this.href !== window.location.href) {
+ window.location.href = this.href;
+ }
});
}
}