Skip to content

Commit

Permalink
Fix get url construction
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Nov 10, 2023
1 parent 780bcbb commit 51e829d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/browser-tracker-core/src/tracker/out_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,13 @@ export function OutQueueManager(
* @param nextRequest - the query string of the next request
*/
function createGetUrl(nextRequest: string) {
const getUrl =
configCollectorUrl + useStm ? nextRequest.replace('?', '?stm=' + new Date().getTime() + '&') : nextRequest;
let getUrl = configCollectorUrl;
if (useStm) {
getUrl += nextRequest.replace('?', '?stm=' + new Date().getTime() + '&');
} else {
getUrl += nextRequest;
}

currentBatch = [getUrl];
return getUrl;
}
Expand Down

0 comments on commit 51e829d

Please sign in to comment.