aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.ts2
-rw-r--r--webAO/utils/queryParser.js9
2 files changed, 1 insertions, 10 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index edd5d13..918704d 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -25,7 +25,7 @@ import {
changeTestimonyVolume,
} from "./dom/changeVolume.js";
import fileExists from "./utils/fileExists.js";
-import queryParser from "./utils/queryParser.js";
+import queryParser from "./utils/queryParser";
import getResources from "./utils/getResources.js";
import transparentPng from "./constants/transparentPng";
import downloadFile from "./services/downloadFile";
diff --git a/webAO/utils/queryParser.js b/webAO/utils/queryParser.js
deleted file mode 100644
index 1c2b83a..0000000
--- a/webAO/utils/queryParser.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// Get the arguments from the URL bar
-const queryParser = () => {
- const queryDict = {};
- location.search.substr(1).split('&').forEach((item) => {
- queryDict[item.split('=')[0]] = item.split('=')[1];
- });
- return queryDict;
-};
-export default queryParser;