Skip to content

Commit

Permalink
add Date.now to version script url
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbents committed Oct 25, 2023
1 parent 56026bc commit e9574c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/versionLoader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MODE, URLS } from './constants'
import { Mode } from './types'
import { loadModule } from './utils'
import { getVersionedUrl, loadModule } from './utils'

let loadedVersion: string = null

Expand All @@ -12,7 +12,7 @@ export function RevolutPaymentsVersionLoader(
}

return loadModule({
src: URLS[mode].version,
src: getVersionedUrl(URLS[mode].version, `${Date.now()}`),
id: 'revolut-pay-version',
name: 'RevolutPayVersion',
})
Expand Down

0 comments on commit e9574c5

Please sign in to comment.