8 lines
222 B
JavaScript
8 lines
222 B
JavaScript
(function () {
|
|
var $root = document.getElementsByClassName('root')[0];
|
|
if (window.hasEvent('touchstart')) {
|
|
$root.dataset.isTouch = true;
|
|
document.addEventListener('touchstart', function(){}, false);
|
|
}
|
|
})();
|