check if yns_pause exists

This commit is contained in:
Araxeus
2021-05-07 04:17:17 +03:00
parent d274e80f75
commit 88e738c796

View File

@ -10,7 +10,11 @@ module.exports = () => {
if (videoStream.paused) {
videoStream.play();
} else {
videoStream.yns_pause();
if (videoStream.yns_pause) {
videoStream.yns_pause();
} else {
videoStream.pause();
}
}
});
};