pacexy/mv3-hot-reload

Page not refreshing on changes. background script losing websocket connection

Opened this issue · 0 comments

Hey @pacexy , this has been a super helpful extension, but not sure if I'm the only one for whom it stops refreshing page after a few file changes or if I change the active tab.

What I've found worked for me (changed the source for mv3-hot-reload a bit):

  • instead of sending message to background.js to do active tab refresh, use location.reload() in the content.js itself

I think this might refresh every tab if content script loads on every page, but for my extension it loads on just one kind of urls so it works fine, but what do you think about all this?