Inject Better xCloud button to Remote Play page's header

This commit is contained in:
redphx
2025-04-26 08:22:20 +07:00
parent e3789b4fb7
commit 3bfa7e5f21
5 changed files with 16 additions and 9 deletions

View File

@@ -1091,7 +1091,7 @@ ${subsVar} = subs;
},
injectHeaderUseEffect(str: string) {
let index = str.indexOf('"EdgewaterHeader-module__spaceBetween');
let index = str.indexOf('className:"Header-module__header');
index > -1 && (index = PatcherUtils.lastIndexOf(str, 'return', index, 300));
if (index < 0) {
return false;