spletna-stran/web/core/misc/touchevents-test.es6.js

12 lines
261 B
JavaScript
Raw Permalink Normal View History

/**
* @file
* A replacement for Modernizr touch events detection.
*/
document.documentElement.classList.add(
'ontouchstart' in window ||
(window.DocumentTouch && document instanceof window.DocumentTouch)
? 'touchevents'
: 'no-touchevents',
);