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

Any way to make an extension reload itself? #22

Open
rzfzr opened this issue Apr 24, 2022 · 3 comments
Open

Any way to make an extension reload itself? #22

rzfzr opened this issue Apr 24, 2022 · 3 comments

Comments

@rzfzr
Copy link

rzfzr commented Apr 24, 2022

After .setEnabled(id,false) the extension itself goes blank,
maybe there is someway to spawn a process that re-enables and launches it before that?

@arikw
Copy link
Owner

arikw commented May 24, 2022

Hi, I'm not sure I understand. Can you please elaborate?

@rzfzr
Copy link
Author

rzfzr commented May 24, 2022

Sure,
I have a custom extension I developed that I only distribute to one other person, I do not want to publish it on the chrome store.
So as an alternative, the extension should update itself, as it works with a node server running in the background, I already

  1. Download the newest version
  2. Replace the source files
  3. Use your code to begin reloading
  4. The user has to go manually re-enable the extension.

Ideally the last step shouldn't be necessary.

@rzfzr
Copy link
Author

rzfzr commented May 24, 2022

The server is node, thought about making it reload it, saw that there was a convoluted way, where chrome has to be started with some development flags

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