Skip to content

Commit

Permalink
added ref query removing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Nov 25, 2024
1 parent f0f4af9 commit c2b06ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/workshop/[id]/client_code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ export default function Home({ data, referrer }: { data: Interfaces.Bandage, ref

useEffect(() => {
setNavPath(generatePath(data.external_id, referrer, data.author?.name));

if (referrer) {
const url = new URL(window.location.toString());
url.search = '';
window.history.replaceState({}, document.title, url);
}
client.current = new Client();
client.current.addEventListener('skin_changed', (event: { skin: string, cape: string }) => {
setSkin(event.skin);
Expand Down

0 comments on commit c2b06ea

Please sign in to comment.