Skip to content

Commit

Permalink
fix increase/decrease playback rate problem (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
j835111 authored Nov 13, 2021
1 parent 00c3ad9 commit 0e5d964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playback-rate-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlaybackRateController {
if (evt.ctrlKey || evt.altKey || evt.shiftKey || evt.metaKey) return;
if ((evt.keyCode !== 219 /* [ */) && (evt.keyCode !== 221 /* ] */)) return;

const playerContainer = document.querySelector('.nf-player-container');
const playerContainer = document.querySelector('.watch-video');
if (!playerContainer) return;

const video = playerContainer.querySelector('video');
Expand Down

0 comments on commit 0e5d964

Please sign in to comment.