Skip to content

Commit

Permalink
improve visualeditor when params query string parameter is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Dec 19, 2022
1 parent 12ab92c commit 57a7f68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions debugger/visualeditor.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@

// semicolon-separated list of types for the starting parameters
// (hint: the number of shown parameters depends on this)
var params = [];
if (window.location.search.search(/params=/) != -1)
{
var params = window.location.search.match(/params=([^&]*)/);
params = params[1].split(';');
}
else
{
var params = [];
let param = window.location.search.match(/params=([^&]*)/);
if (param[1] != '') {
params = param[1].split(';');
}
}

// choose between json and xmlrpc
Expand Down

0 comments on commit 57a7f68

Please sign in to comment.