Skip to content

Commit 1db7c38

Browse files
authored
fixed comment
1 parent f87424d commit 1db7c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unbreakable-links/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const putCommitHashInURL = commitHash => {
3131
searchParams.set("version", commitHash)
3232
const urlWithoutSearch = window.location.toString().replace(window.location.search, "")
3333
const newURL = urlWithoutSearch + "?" + searchParams.toString()
34-
window.history.replaceState({}, null, newURL) // so as to now cause page to reload
34+
window.history.replaceState({}, null, newURL) // replaceState updates the URL without reloading the page
3535
}
3636

3737
const getMostRecentCommits = (repoPath, filePath) => fetch(
@@ -181,4 +181,4 @@ window.addEventListener("load", () => {
181181
return
182182
}
183183
})
184-
})
184+
})

0 commit comments

Comments
 (0)