Preload Remote Play right after getting server list

This commit is contained in:
redphx 2024-04-06 15:31:59 +07:00
parent 1a2fb6c89a
commit cdc64da95f

View File

@ -10195,6 +10195,9 @@ function interceptHttpRequests() {
return promise.then(response => {
return response.clone().json().then(obj => {
// Preload Remote Play
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload();
// Store xCloud token
RemotePlay.XCLOUD_TOKEN = obj.gsToken;
@ -10829,9 +10832,6 @@ function checkHeader() {
if (!$button) {
const $rightHeader = document.querySelector('#PageContent div[class*=EdgewaterHeader-module__rightSectionSpacing]');
injectSettingsButton($rightHeader);
// Preload Remote Play
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload();
}
}