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

How to keep chrome.sidePanel open during hot-reload #10

Open
driuqzy opened this issue May 23, 2024 · 5 comments
Open

How to keep chrome.sidePanel open during hot-reload #10

driuqzy opened this issue May 23, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@driuqzy
Copy link

driuqzy commented May 23, 2024

My extension is primarily a chrome.sidePanel, and hot reload causes the side panel to close, requiring me to re-open it after each hot reload.

Any way to keep it open?

@isaurssaurav
Copy link
Owner

isaurssaurav commented May 27, 2024

@driuqzy
This could be really nice addition to this plugin. I also did face small hindrance when i was working with the pop-up too.

Maybe I will add the config param keepSidePanelOpen

hotReloadExtension({
      log: true,
      backgroundPath: 'path/to/background',
      keepSidePanelOpen: true,
      keepSidePopupOpen: true
})

OR

keep the state of sidePanel in memory.

I will work on it.

@isaurssaurav isaurssaurav added the enhancement New feature or request label May 27, 2024
@isaurssaurav
Copy link
Owner

I looked into it and it is not possible to open sidepanel programmatically.

I would suggest you have shortcut command to open sidepanel for easier development. Thats, the only thing i can refer with this plugin at the moment.

But, I am still open to looking into it further.

@danielsussa
Copy link

guys, look this solution that I created. I've been working on a side panel and this way helped me a lot:
https://github.com/danielsussa/chrome-sidepanel-hotreload

@GregoryBai
Copy link

@danielsussa Thanks, Daniel!

This is really helpful.

I did combine your sidepanel's code with this repo's code, and it works!

Will try to do a small PR!

@isaurssaurav
Copy link
Owner

@GregoryBai Thanks for PR 👍 . I will look into it.

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

No branches or pull requests

4 participants