summaryrefslogtreecommitdiff
path: root/_includes/scripts/common.js
blob: 09400a2ae018ff5ab22b61540fc001b64ad1b2be (plain)
1
2
3
4
5
6
7
(function () {
  var $root = document.getElementsByClassName('root')[0];
  if (window.hasEvent('touchstart')) {
    $root.dataset.isTouch = true;
    document.addEventListener('touchstart', function(){}, false);
  }
})();