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

Hot reload only the active tab. #142

Open
2 of 6 tasks
shadab14meb346 opened this issue Jan 12, 2022 · 1 comment
Open
2 of 6 tasks

Hot reload only the active tab. #142

shadab14meb346 opened this issue Jan 12, 2022 · 1 comment

Comments

@shadab14meb346
Copy link

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS:Linux
  • Browser: Chrome
  • Library Version: ^1.1.4

I'm going to open a PR:

  • yes
  • no

Description:
I currently below is my config

 new ExtensionReloader({
        port: 9090,
        reloadPage: true,
        entries: {
          // TODO: reload manifest on update
          contentScript: "contentScript",
          background: "background",
          extensionPage: ["popup", "options"],
        },
      })

Whenever a change is there it reloads all of the tabs to which my chrome extension has access.
Is there a way to just reload the active tab?

@sherifmayika
Copy link

for me reload works only on contentScript and background not extensionPage: ["popup", "options"],

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

2 participants