diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-08-30 20:53:31 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-08-30 20:53:31 +0200 |
| commit | 2838fbe91a270ed3d69ac708dac85b108b6f09dc (patch) | |
| tree | 3dbec002d22e32e0e14d289edeb43aef10a99151 /webAO | |
| parent | 2e5e164bbde1b024834430a91a5c1b81b6e33ae4 (diff) | |
use the typescript version of queryparser
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.ts | 2 | ||||
| -rw-r--r-- | webAO/utils/queryParser.js | 9 |
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; |
