markdown-viewer
markdown-viewer copied to clipboard
Graceful hot reload
trafficstars
Instead of location.reload(true), it may feel better to just 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.