Update dist

This commit is contained in:
redphx 2024-05-03 18:09:43 +07:00
parent f144fac81e
commit ddb8628e57

View File

@ -9928,6 +9928,7 @@ class Patcher {
let appliedPatches;
const caches = {};
for (let id in item[1]) {
appliedPatches = [];
const cachedPatches = PatcherCache.getPatches(id);
if (cachedPatches) {
patchesToCheck = cachedPatches;
@ -9938,7 +9939,6 @@ class Patcher {
if (!patchesToCheck.length) {
continue;
}
appliedPatches = [];
const func = item[1][id];
let str = func.toString();
for (let groupIndex = 0;groupIndex < patchesToCheck.length; groupIndex++) {
@ -10327,6 +10327,7 @@ window.addEventListener(BxEvent.STREAM_PLAYING, (e) => {
updateVideoPlayerCss();
if (PREF_SCREENSHOT_BUTTON_POSITION !== "none") {
const $btn = document.querySelector(".bx-screenshot-button");
$btn.classList.remove("bx-gone");
$btn.style.display = "block";
if (PREF_SCREENSHOT_BUTTON_POSITION === "bottom-right") {
$btn.style.right = "0";
@ -10334,6 +10335,8 @@ window.addEventListener(BxEvent.STREAM_PLAYING, (e) => {
$btn.style.left = "0";
}
}
const $touchControllerBar = document.getElementById("bx-touch-controller-bar");
$touchControllerBar && $touchControllerBar.classList.remove("bx-gone");
});
window.addEventListener(BxEvent.STREAM_ERROR_PAGE, (e) => {
BxEvent.dispatch(window, BxEvent.STREAM_STOPPED);