Scroll window to the top on render. (#423)
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
<meta name="color-scheme" content="dark light">
|
<meta name="color-scheme" content="dark light">
|
||||||
<script>
|
<script>
|
||||||
function RenderHTML(htmlString) {
|
function RenderHTML(htmlString) {
|
||||||
|
window.scroll(0, 0);
|
||||||
var containerDiv = document.getElementById("readerDiv");
|
var containerDiv = document.getElementById("readerDiv");
|
||||||
containerDiv.innerHTML = htmlString;
|
containerDiv.innerHTML = htmlString;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user