mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Update dist
This commit is contained in:
parent
f144fac81e
commit
ddb8628e57
5
dist/better-xcloud.user.js
vendored
5
dist/better-xcloud.user.js
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user