From 6688918a53a451f8629bb6ee0a62dee0b118d724 Mon Sep 17 00:00:00 2001
From: Brendan F <EpicWolverine@users.noreply.github.com>
Date: Tue, 11 Jul 2023 23:17:21 -0700
Subject: Work around 414 URI Too Long

---
 src/app.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/app.tsx')

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)
-- 
cgit v1.2.3

