Minor fixes

This commit is contained in:
redphx 2024-04-15 08:06:14 +07:00
parent 992605690f
commit 9322480059

View File

@ -12186,7 +12186,7 @@ function handleDeepLink() {
window.history.replaceState({origin: 'better-xcloud'}, '', window.location.href.substring(0, window.location.href.indexOf('#@'))); window.history.replaceState({origin: 'better-xcloud'}, '', window.location.href.substring(0, window.location.href.indexOf('#@')));
let path = ''; let path = '';
if (hash.startsWith('#@play')) { if (window.location.href.indexOf('/play/launch/') === -1 && hash.startsWith('#@play')) {
path = '/launch' + hash.substring(6); path = '/launch' + hash.substring(6);
} }
@ -12202,7 +12202,7 @@ function handleDeepLink() {
} }
const target = mutation.target; const target = mutation.target;
if (!handled && target.className && target.className.startsWith('AllGamesRow')) { if (!handled && target.className && target.className.startsWith && target.className.startsWith('AllGamesRow')) {
observer.disconnect(); observer.disconnect();
handled = true; handled = true;