markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Graceful hot reload

Open hyrious opened this issue 4 years ago • 1 comments
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

hyrious avatar Jan 12 '21 01:01 hyrious

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 avatar Jan 12 '21 08:01 simov

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

simov avatar Dec 10 '22 18:12 simov