mirror of
https://github.com/miniflux/v2.git
synced 2025-09-30 19:22:11 +00:00
refactor(js): remove isTouchSupported()
static function
This commit is contained in:
parent
a60a153003
commit
645800ce3c
2 changed files with 8 additions and 14 deletions
|
@ -1230,8 +1230,10 @@ function initializeKeyboardShortcuts() {
|
|||
* Initialize touch handler for mobile devices.
|
||||
*/
|
||||
function initializeTouchHandler() {
|
||||
const touchHandler = new TouchHandler();
|
||||
touchHandler.listen();
|
||||
if ( "ontouchstart" in window || navigator.maxTouchPoints > 0) {
|
||||
const touchHandler = new TouchHandler();
|
||||
touchHandler.listen();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue