Don't restore scroll position on page refresh. Fixes #186

This commit is contained in:
Dessalines 2021-07-16 09:05:28 -04:00
parent b0eac0e9fa
commit 35f1b18e67

View file

@ -43,8 +43,11 @@ export class WebSocketService {
}).pipe(share());
if (isBrowser()) {
window.onbeforeunload = () => {
window.onunload = () => {
this.ws.close();
// Clears out scroll positions.
sessionStorage.clear();
};
}
}