-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use pageAction
instead of browserAction
?
#1
Comments
Yes, good suggestion. Will implement this when we'll have an option page first, where we may indicate for which pages to use it. |
I have a suggestion, how about this:
Then the extension have the capability to know when it should be enabled. |
I check the code, I think the only block is that the store is a singleton in the extension. |
Yes, it is a good solution, but we also need to enable/disable specific urls explicitly, for example in production (instead of disabling/enabling the extension). |
Hmm, sorry I missed this part. I imagine that we could use Dan's multiple file solution. But anyway, we restrict the behavior against specific url, then we can avoid to inject content script to every tab. Instead, we use Only when the url matches the criteria, the |
Thanks, @timnew! It is much better with a pageAction. If you want to test it before the next release, just run About debugging multiple tabs, it's the same as for the browserAction. The popup/window's store is updated if you open/refresh the page or dispatch an action, otherwise you have their the devtools for the last active tab (as in demo). I'm not sure whether it is a bug or a feature, but I found it useful. If someone wants to have there only the devtools for the current tab, just file and issue, it is easy to fix. |
Fixed the issue with multiple tabs in 49b5298. |
awesome, I was thinking maybe I can provide a pull request later today. I'll try latest release today! Cheers, Sent from my Galaxy Note 3
|
Feel free to reopen the issue if something goes wrong. |
Got it. Do you have any idea about how to build options page? Redux + React? Actually, the stuff I'm building with redux and react is the option page for a chrome extension. 😂 |
It's as easy as an browser/page action page. I do not see nothing special. Just would be great to choose a React lib for the forms' UI. And of course, we need to save the configuration to UPD: the first realisation will work in firefox when the issue is fixed. |
If you found something different in the option page, we may add it in our boilerplate. |
Sure! I might need to get familiar with FF |
@zalmoxisus Do you think it would be nicer it the extension is registered as
pageAction
instead ofbrowserAction
. Since we only use it in particular pages instead of every one.Before the extension can recognize the redux store, we can use it as a permanent page action(displayed on every page)?
The text was updated successfully, but these errors were encountered: