Skip to content

Commit

Permalink
Fix empty query param when calling external dependency toolbar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasra1 committed Oct 7, 2024
1 parent 5b33bdb commit d1235c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoints/external-scripts-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ assignableWindow.__PosthogExtensions__.loadExternalDependency = (
// this ensures that we bust the cache periodically
const timestampToNearestFiveMinutes = Math.floor(Date.now() / fiveMinutesInMillis) * fiveMinutesInMillis

scriptUrlToLoad = `${scriptUrlToLoad}?&=${timestampToNearestFiveMinutes}`
scriptUrlToLoad = `${scriptUrlToLoad}&t=${timestampToNearestFiveMinutes}`
}
const url = posthog.requestRouter.endpointFor('assets', scriptUrlToLoad)

Expand Down

0 comments on commit d1235c2

Please sign in to comment.