Initial Drupal 11 with DDEV setup
This commit is contained in:
11
web/core/misc/touchevents-test.js
Normal file
11
web/core/misc/touchevents-test.js
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @file
|
||||
* A replacement for Modernizr touch events detection.
|
||||
*/
|
||||
|
||||
document.documentElement.classList.add(
|
||||
'ontouchstart' in window ||
|
||||
(window.DocumentTouch && document instanceof window.DocumentTouch)
|
||||
? 'touchevents'
|
||||
: 'no-touchevents',
|
||||
);
|
||||
Reference in New Issue
Block a user