From 1a5b231d1e8abe9a05cfc1944a50dd124253b4ad Mon Sep 17 00:00:00 2001 From: Janis Date: Sun, 12 Nov 2023 19:01:01 +0100 Subject: [PATCH] fix hashruter generator --- package.json | 2 +- src/Generator.tsx | 4 +++- src/Viewer.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 456d4bf..91c480a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ts5-obs-overlay", "private": false, - "version": "2.0.5", + "version": "2.0.6", "description": "Overlay for OBS to show the current talking clients in your TeamSpeak 5 Channel", "author": "DerTyp7", "homepage": "https://dertyp7.github.io/ts5-obs-overlay/#", diff --git a/src/Generator.tsx b/src/Generator.tsx index f6042ad..d3ef071 100644 --- a/src/Generator.tsx +++ b/src/Generator.tsx @@ -27,7 +27,9 @@ export default function Generator() { url.searchParams.set("hideNonTalking", hideNonTalking.toString()); url.searchParams.set("clientLimit", clientLimit.toString()); - setOutputUrl(url.toString()); + // url.hash function always sets the hash to the end of the URL, so we have to replace the question mark with a hash + // gh-pages needs the hash to be between the base URL and the search params + setOutputUrl(url.toString().replace("?", "#/?")); } // Function to copy URL to clipboard diff --git a/src/Viewer.tsx b/src/Viewer.tsx index dcb85ea..d7705ff 100644 --- a/src/Viewer.tsx +++ b/src/Viewer.tsx @@ -16,7 +16,7 @@ export default function Viewer({ remoteAppPort: remoteAppPort, auth: { identifier: "de.tealfire.obs", - version: "2.0.5", + version: "2.0.6", name: "TS5 OBS Overlay", description: "A OBS overlay for TS5 by DerTyp7", },