mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 16:17:20 +02:00
Minor fixes
This commit is contained in:
parent
08f2db0846
commit
992605690f
@ -12194,16 +12194,19 @@ function handleDeepLink() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let handled = false
|
||||||
const observer = new MutationObserver(mutationList => {
|
const observer = new MutationObserver(mutationList => {
|
||||||
mutationList.forEach(mutation => {
|
mutationList.forEach(mutation => {
|
||||||
if (mutation.type !== 'childList') {
|
if (handled || mutation.type !== 'childList') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const target = mutation.target;
|
const target = mutation.target;
|
||||||
if (target.className && target.className.startsWith('AllGamesRow')) {
|
if (!handled && target.className && target.className.startsWith('AllGamesRow')) {
|
||||||
localRedirect(path);
|
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
|
|
||||||
|
handled = true;
|
||||||
|
localRedirect(path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user