Closed hyrious closed 1 year ago
Instead of location.reload(true), it may feel better to just container.innerHTML = body.
location.reload(true)
container.innerHTML = body
https://github.com/simov/markdown-viewer/blob/d7f9bfefbbddb7022b4b577e328f67a079bf11bb/content/index.js#L270-L272
Yes, that sounds like a good idea. However currently other functionality of the extension is tied to the page load event as well, so it will require rethinking of the entire content page logic.
This was implemented in Markdown Viewer v5, you can download it from the Chrome Web Store or from the releases section here.
Instead of
location.reload(true)
, it may feel better to justcontainer.innerHTML = body
.https://github.com/simov/markdown-viewer/blob/d7f9bfefbbddb7022b4b577e328f67a079bf11bb/content/index.js#L270-L272