We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87424d commit 1db7c38Copy full SHA for 1db7c38
unbreakable-links/index.js
@@ -31,7 +31,7 @@ const putCommitHashInURL = commitHash => {
31
searchParams.set("version", commitHash)
32
const urlWithoutSearch = window.location.toString().replace(window.location.search, "")
33
const newURL = urlWithoutSearch + "?" + searchParams.toString()
34
- window.history.replaceState({}, null, newURL) // so as to now cause page to reload
+ window.history.replaceState({}, null, newURL) // replaceState updates the URL without reloading the page
35
}
36
37
const getMostRecentCommits = (repoPath, filePath) => fetch(
@@ -181,4 +181,4 @@ window.addEventListener("load", () => {
181
return
182
183
})
184
-})
+})
0 commit comments