add (client-side) story position syncing
directly links to chapter on Saved Stories page, otherwise there's a button in the Details tab to return to your last viewed chaptermaster
parent
e46cfb63bd
commit
72442a3ca9
@ -0,0 +1,9 @@
|
||||
export default () => {
|
||||
window.onload = () => {
|
||||
const params = new URL(document.location.href).searchParams;
|
||||
localStorage.setItem(
|
||||
`${params.get("id")}_progress`,
|
||||
params.get("chapter") as string,
|
||||
);
|
||||
};
|
||||
};
|
Loading…
Reference in new issue