diff options
| -rw-r--r-- | src/app.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app.tsx b/src/app.tsx index 32559c3..1aab160 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -29,7 +29,9 @@ function App() { function reloadWithoutQueryParameters() { location.replace(location.pathname); } - const statsImportQueryParameter = new URLSearchParams(window.location.search).get('statsImport') || ""; + const urlHash = window.location.hash; + const urlQueryParametersStart = urlHash.indexOf("?"); + const statsImportQueryParameter = new URLSearchParams(urlHash.substring(urlQueryParametersStart)).get('statsImport') || ""; function importStats () { if (statsImportQueryParameter){ const importedStats = JSON.parse(statsImportQueryParameter) |
