MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / loadState

Function loadState

docs/assets/site.js:144–153  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

142}
143
144function loadState(ev) {
145 if (ev) {
146 // Edge doesn't replace change history.state on popstate.
147 history.replaceState(ev.state, document.title);
148 }
149 if (history.state) {
150 split_left.scrollTop = history.state.left_top;
151 split_right.scrollTop = history.state.right_top;
152 }
153}
154
155window.addEventListener('load', function () {
156 // Restore after Firefox scrolls to hash.

Callers 1

site.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected