excmds.ts: Fix jumplist not being correctly restored on reloads

This commit is contained in:
glacambre 2018-06-24 05:49:52 +02:00
parent db780f2d69
commit 7127106a25
No known key found for this signature in database
GPG key ID: B9625DB1767553AC

View file

@ -675,9 +675,7 @@ document.addEventListener("scroll", addJump)
// Try to restore the previous jump position every time a page is loaded
//#content_helper
curJumps().then(() => {
jumpprev(0)
})
document.addEventListener("load", () => curJumps().then(() => jumpprev(0)))
/** Blur (unfocus) the active element */
//#content