diff --git a/client/src/assets/player/peertube-plugin.ts b/client/src/assets/player/peertube-plugin.ts index 272f5353d..fd612dd4f 100644 --- a/client/src/assets/player/peertube-plugin.ts +++ b/client/src/assets/player/peertube-plugin.ts @@ -252,12 +252,6 @@ class PeerTubePlugin extends Plugin { logger('Set player inactivity to ' + timeout) } - private isTouchEnabled () { - return ('ontouchstart' in window) || - navigator.maxTouchPoints > 0 || - (navigator as any).msMaxTouchPoints > 0 - } - private initCaptions () { for (const caption of this.videoCaptions) { this.player.addRemoteTextTrack({