mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 12:56:42 +02:00
Fix Settings button not showing on Header sometimes
This commit is contained in:
@@ -57,21 +57,20 @@ export class HeaderSection {
|
||||
}
|
||||
|
||||
static checkHeader() {
|
||||
if (!HeaderSection.#$buttonsWrapper.isConnected) {
|
||||
let $target = document.querySelector('#PageContent div[class*=EdgewaterHeader-module__rightSectionSpacing]');
|
||||
if (!$target) {
|
||||
$target = document.querySelector("div[class^=UnsupportedMarketPage-module__buttons]");
|
||||
}
|
||||
|
||||
$target && HeaderSection.#injectSettingsButton($target as HTMLElement);
|
||||
}
|
||||
}
|
||||
|
||||
static showRemotePlayButton() {
|
||||
HeaderSection.#$remotePlayBtn.classList.remove('bx-gone');
|
||||
}
|
||||
|
||||
static watchHeader() {
|
||||
let $root = document.querySelector('#PageContent header') || document.querySelector('#root');
|
||||
const $root = document.querySelector('#PageContent header') || document.querySelector('#root');
|
||||
if (!$root) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user