MCPcopy Create free account
hub / github.com/TruthHun/BookStack / updateHistory

Function updateHistory

static/mergely/editor/editor.js:668–671  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

666 }
667 }
668 function updateHistory(params) {
669 var baseUrl = [location.protocol, '//', location.host, location.pathname].join('');
670 window.history.pushState({}, null, baseUrl + params);
671 }
672 // Explicitly save/update a url parameter using HTML5's replaceState().
673 function updateQueryStringParam(key, value, defaultValue, urlQueryString) {
674 urlQueryString = urlQueryString || document.location.search;

Callers 2

editor.jsFile · 0.70
applyColorCssFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected