mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 04:50:05 +00:00
And rewrite all the require calls. ```bash git mv src/utils/* packages/@uppy/utils/src sed -i 's/[./]*\/utils\//@uppy\/utils\/lib\//' src/**/*.js # transform (../)*utils → @uppy/utils ```
4 lines
179 B
JavaScript
4 lines
179 B
JavaScript
module.exports = function isTouchDevice () {
|
|
return 'ontouchstart' in window || // works on most browsers
|
|
navigator.maxTouchPoints // works on IE10/11 and Surface
|
|
}
|