Update osdVisible function
This commit is contained in:
parent
b62809e656
commit
2cbe1bdb01
@ -181,18 +181,12 @@ introSkipper.injectButton = async function () {
|
||||
controls.appendChild(button);
|
||||
}
|
||||
|
||||
/** Tests if the OSD controls are visible. */
|
||||
introSkipper.osdVisible = function () {
|
||||
let osd = document.querySelector("div.videoOsdBottom");
|
||||
|
||||
if (!osd) {
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
return !osd.classList.contains("hide");
|
||||
const osd = document.querySelector("div.videoOsdBottom");
|
||||
return osd ? !osd.classList.contains("hide") : false;
|
||||
}
|
||||
|
||||
|
||||
/** Get the currently playing skippable segment. */
|
||||
introSkipper.getCurrentSegment = function (position) {
|
||||
for (let key in introSkipper.skipSegments) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user