diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/peertube-plugin.ts | 6 |
1 files changed, 0 insertions, 6 deletions
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 { | |||
252 | logger('Set player inactivity to ' + timeout) | 252 | logger('Set player inactivity to ' + timeout) |
253 | } | 253 | } |
254 | 254 | ||
255 | private isTouchEnabled () { | ||
256 | return ('ontouchstart' in window) || | ||
257 | navigator.maxTouchPoints > 0 || | ||
258 | (navigator as any).msMaxTouchPoints > 0 | ||
259 | } | ||
260 | |||
261 | private initCaptions () { | 255 | private initCaptions () { |
262 | for (const caption of this.videoCaptions) { | 256 | for (const caption of this.videoCaptions) { |
263 | this.player.addRemoteTextTrack({ | 257 | this.player.addRemoteTextTrack({ |