mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
const { ontimeupdate } = require("../../providers/video-element");
|
|
|
|
module.exports = () => {
|
|
ontimeupdate((videoElement) => {
|
|
if (videoElement.currentTime === 0 && videoElement.duration !== NaN) {
|
|
// auto-confirm-when-paused plugin can interfere here if not disabled!
|
|
videoElement.pause();
|
|
}
|
|
});
|
|
};
|