mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Preload Remote Play right after getting server list
This commit is contained in:
parent
1a2fb6c89a
commit
cdc64da95f
@ -10195,6 +10195,9 @@ function interceptHttpRequests() {
|
|||||||
|
|
||||||
return promise.then(response => {
|
return promise.then(response => {
|
||||||
return response.clone().json().then(obj => {
|
return response.clone().json().then(obj => {
|
||||||
|
// Preload Remote Play
|
||||||
|
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload();
|
||||||
|
|
||||||
// Store xCloud token
|
// Store xCloud token
|
||||||
RemotePlay.XCLOUD_TOKEN = obj.gsToken;
|
RemotePlay.XCLOUD_TOKEN = obj.gsToken;
|
||||||
|
|
||||||
@ -10829,9 +10832,6 @@ function checkHeader() {
|
|||||||
if (!$button) {
|
if (!$button) {
|
||||||
const $rightHeader = document.querySelector('#PageContent div[class*=EdgewaterHeader-module__rightSectionSpacing]');
|
const $rightHeader = document.querySelector('#PageContent div[class*=EdgewaterHeader-module__rightSectionSpacing]');
|
||||||
injectSettingsButton($rightHeader);
|
injectSettingsButton($rightHeader);
|
||||||
|
|
||||||
// Preload Remote Play
|
|
||||||
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user