Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not refreshing on changes. background script losing websocket connection #10

Open
piyu-sh opened this issue Dec 4, 2022 · 0 comments

Comments

@piyu-sh
Copy link

piyu-sh commented Dec 4, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant