Skip to content

Commit

Permalink
feat: 🎸 update request url parameter: performance.now -> timest
Browse files Browse the repository at this point in the history
✅ Closes: #46
  • Loading branch information
GreatAuk committed Oct 11, 2023
1 parent 92bdcd8 commit 77ba6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/injectScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function __checkUpdateSetup__(options: Options) {
} = options
const checkSystemUpdate = () => {
window
.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${performance.now()}`)
.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${Date.now()}`)
.then((response) => {
if (!response.ok)
throw new Error(`Failed to fetch ${JSON_FILE_NAME}.json`)
Expand Down

0 comments on commit 77ba6c9

Please sign in to comment.