simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.05k stars 133 forks source link

Graceful hot reload #136

Closed hyrious closed 1 year ago

hyrious commented 3 years ago

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

simov commented 3 years ago

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.

simov commented 1 year ago

This was implemented in Markdown Viewer v5, you can download it from the Chrome Web Store or from the releases section here.