Add a comment to the top of the javascript.
This commit is contained in:
parent
1487835478
commit
296777d3fc
|
@ -1,4 +1,7 @@
|
||||||
|
/*
|
||||||
|
Stores the scroll location on a story to local storage, and re-scroll to the
|
||||||
|
position next time the page is loaded.
|
||||||
|
*/
|
||||||
window.onbeforeunload = function(e) {
|
window.onbeforeunload = function(e) {
|
||||||
localStorage.setItem(window.location.pathname,window.scrollY)
|
localStorage.setItem(window.location.pathname,window.scrollY)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue