Skip to content

Commit

Permalink
Extra check of trim query
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Scott committed May 13, 2022
1 parent 002178a commit 8cc6416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var favIconHtml = '<link rel="icon" type="image/png" href="./favicon-32x32.png"
var swaggerInit = ''

function trimQuery(q) {
return q.split('?')[0]
return q && q.split('?')[0]
}

var htmlTplString = `
Expand Down

0 comments on commit 8cc6416

Please sign in to comment.