mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Remove hash in handleDeepLink()
This commit is contained in:
parent
645155bee0
commit
08f2db0846
@ -3489,6 +3489,7 @@ var APP_CONTEXT;
|
||||
|
||||
window.BX_EXPOSED = {
|
||||
onPollingModeChanged: mode => {
|
||||
|
||||
if (!IS_PLAYING) {
|
||||
return false;
|
||||
}
|
||||
@ -12181,6 +12182,9 @@ function handleDeepLink() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove hash
|
||||
window.history.replaceState({origin: 'better-xcloud'}, '', window.location.href.substring(0, window.location.href.indexOf('#@')));
|
||||
|
||||
let path = '';
|
||||
if (hash.startsWith('#@play')) {
|
||||
path = '/launch' + hash.substring(6);
|
||||
@ -12200,6 +12204,7 @@ function handleDeepLink() {
|
||||
if (target.className && target.className.startsWith('AllGamesRow')) {
|
||||
localRedirect(path);
|
||||
observer.disconnect();
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user