Commit
This commit is contained in:
parent
66474e3791
commit
2a61e91d6d
@ -56,16 +56,11 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const urlParams = new URLSearchParams(this.toolData.data);
|
||||
const url = new URL(this.toolData.data);
|
||||
|
||||
// Parse query
|
||||
const queryParams = [];
|
||||
for (let [key, value] of urlParams) {
|
||||
// Fix first param starts with main url part
|
||||
if (key.indexOf('?') !== -1) {
|
||||
key = key.split('?')[1];
|
||||
}
|
||||
|
||||
for (let [key, value] of url.searchParams.entries()) {
|
||||
queryParams.push({
|
||||
key: key,
|
||||
value: value,
|
||||
|
Loading…
x
Reference in New Issue
Block a user