Closes #7 Reviewed-on: #9 Co-authored-by: stuzer05 <stuzer05@stuzer.link> Co-committed-by: stuzer05 <stuzer05@stuzer.link>
This commit is contained in:
parent
66474e3791
commit
cd7c5a7c82
@ -56,16 +56,11 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(this.toolData.data);
|
const url = new URL(this.toolData.data);
|
||||||
|
|
||||||
// Parse query
|
// Parse query
|
||||||
const queryParams = [];
|
const queryParams = [];
|
||||||
for (let [key, value] of urlParams) {
|
for (let [key, value] of url.searchParams.entries()) {
|
||||||
// Fix first param starts with main url part
|
|
||||||
if (key.indexOf('?') !== -1) {
|
|
||||||
key = key.split('?')[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
queryParams.push({
|
queryParams.push({
|
||||||
key: key,
|
key: key,
|
||||||
value: value,
|
value: value,
|
||||||
|
Loading…
Reference in New Issue
Block a user