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

where can I put code only to be executed in background? #46

Open
brandonmp opened this issue Sep 18, 2016 · 1 comment
Open

where can I put code only to be executed in background? #46

brandonmp opened this issue Sep 18, 2016 · 1 comment

Comments

@brandonmp
Copy link
Contributor

I have auth code I'd like to run in the background script, but having trouble figuring out where to put it in the /app folder (trying to avoid modifying other folders if I can help it).

I've tried app/index.js, but interestingly, in dev mode, this file isn't even used--I can comment out the whole file and everything still runs fine.

Placing code in containers/Root.js seems to result in the code being injected into the content script, so this isn't ideal either.

Is the only option to modify files in browser/extension/background?

Thanks!

@zalmoxisus
Copy link
Owner

Yes, you can modify browser/extension/background/index.js. Or have the code in a separate file and import it there.

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