From 9322480059f56e91002efc1acb2adebcf1f1aff3 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 15 Apr 2024 08:06:14 +0700 Subject: [PATCH] Minor fixes --- better-xcloud.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 56e52d1..42fa14e 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -12186,7 +12186,7 @@ function handleDeepLink() { window.history.replaceState({origin: 'better-xcloud'}, '', window.location.href.substring(0, window.location.href.indexOf('#@'))); let path = ''; - if (hash.startsWith('#@play')) { + if (window.location.href.indexOf('/play/launch/') === -1 && hash.startsWith('#@play')) { path = '/launch' + hash.substring(6); } @@ -12202,7 +12202,7 @@ function handleDeepLink() { } 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(); handled = true;