Skip to content

Commit

Permalink
Remove a layer of URLSearchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Apr 29, 2019
1 parent 0001b8e commit 7138016
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/embed/src/urlBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ function embedTelemetryURL(botId, { secret, token }, points) {
return `/embed/${ botId }/telemetry?${ urlSearchParams.toString() }`
}

function legacyEmbedURL(botId, params) {
const urlSearchParams = new URLSearchParams(params);

function legacyEmbedURL(botId, urlSearchParams) {
return `/embed/${ botId }?${ urlSearchParams.toString() }`;
}

Expand Down

0 comments on commit 7138016

Please sign in to comment.