Skip to content

Commit

Permalink
add search query function
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Sep 29, 2024
1 parent a1ee36b commit 2d51954
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
}
// Hide the JS disabled notice
changeNotice('Redirecting...');

// Extract sessionID from the current URL path and redirect to steam
const urlParams = new URLSearchParams(window.location.search);
const sessionID = urlParams.get('sessionID');
if (!sessionID) return changeNotice(`No sessionID provided! Example: "${window.location.slice(0, -1)}"?sessionID=S-U-h33tology:fitness`);
window.location.href = `steam://rungameid/2519830// -Join Auto -Open ${sessionID}`
</script>
</body>
Expand Down

0 comments on commit 2d51954

Please sign in to comment.