MCPcopy
hub / github.com/jdan/cleaver / updateURL

Function updateURL

resources/script.js:35–41  ·  view source on GitHub ↗

* Updates the current URL to include a hashtag of the current page number.

()

Source from the content-addressed store, hash-verified

33 * Updates the current URL to include a hashtag of the current page number.
34 */
35function updateURL() {
36 try {
37 window.history.replaceState({} , null, '#' + currentPosition());
38 } catch (e) {
39 window.location.hash = currentPosition();
40 }
41}
42
43
44/**

Callers 1

navigateFunction · 0.85

Calls 1

currentPositionFunction · 0.85

Tested by

no test coverage detected