Skip to content

Commit

Permalink
used utility fn to remove trailing slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Dec 29, 2021
1 parent 813cece commit 22766fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/EventRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EventRepository {

initialize(writeKey, url, options) {
let queueOptions = {};
let targetUrl = url.slice(-1) === "/" ? url.slice(0, -1) : url;
let targetUrl = removeTrailingSlashes(url);
if (options && options.useBeacon) {
if (
options &&
Expand Down

0 comments on commit 22766fc

Please sign in to comment.