mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07: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;
|
let appliedPatches;
|
||||||
const caches = {};
|
const caches = {};
|
||||||
for (let id in item[1]) {
|
for (let id in item[1]) {
|
||||||
|
appliedPatches = [];
|
||||||
const cachedPatches = PatcherCache.getPatches(id);
|
const cachedPatches = PatcherCache.getPatches(id);
|
||||||
if (cachedPatches) {
|
if (cachedPatches) {
|
||||||
patchesToCheck = cachedPatches;
|
patchesToCheck = cachedPatches;
|
||||||
@ -9938,7 +9939,6 @@ class Patcher {
|
|||||||
if (!patchesToCheck.length) {
|
if (!patchesToCheck.length) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
appliedPatches = [];
|
|
||||||
const func = item[1][id];
|
const func = item[1][id];
|
||||||
let str = func.toString();
|
let str = func.toString();
|
||||||
for (let groupIndex = 0;groupIndex < patchesToCheck.length; groupIndex++) {
|
for (let groupIndex = 0;groupIndex < patchesToCheck.length; groupIndex++) {
|
||||||
@ -10327,6 +10327,7 @@ window.addEventListener(BxEvent.STREAM_PLAYING, (e) => {
|
|||||||
updateVideoPlayerCss();
|
updateVideoPlayerCss();
|
||||||
if (PREF_SCREENSHOT_BUTTON_POSITION !== "none") {
|
if (PREF_SCREENSHOT_BUTTON_POSITION !== "none") {
|
||||||
const $btn = document.querySelector(".bx-screenshot-button");
|
const $btn = document.querySelector(".bx-screenshot-button");
|
||||||
|
$btn.classList.remove("bx-gone");
|
||||||
$btn.style.display = "block";
|
$btn.style.display = "block";
|
||||||
if (PREF_SCREENSHOT_BUTTON_POSITION === "bottom-right") {
|
if (PREF_SCREENSHOT_BUTTON_POSITION === "bottom-right") {
|
||||||
$btn.style.right = "0";
|
$btn.style.right = "0";
|
||||||
@ -10334,6 +10335,8 @@ window.addEventListener(BxEvent.STREAM_PLAYING, (e) => {
|
|||||||
$btn.style.left = "0";
|
$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) => {
|
window.addEventListener(BxEvent.STREAM_ERROR_PAGE, (e) => {
|
||||||
BxEvent.dispatch(window, BxEvent.STREAM_STOPPED);
|
BxEvent.dispatch(window, BxEvent.STREAM_STOPPED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user