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

Service workers have to be in root directory #24

Closed
TheSynt4x opened this issue Mar 14, 2022 · 1 comment
Closed

Service workers have to be in root directory #24

TheSynt4x opened this issue Mar 14, 2022 · 1 comment

Comments

@TheSynt4x
Copy link

TheSynt4x commented Mar 14, 2022

I stumbled across this bug last week. As per the official documentation, you cannot have a service worker in a nested directory (which this extension plugin has).

Whilst developing locally you will not run into any problems. It is in production, i.e. when it's published on Chrome Webstore that things don't work as intended. For me, several Chrome APIs did not work as intended, I couldn't for example call chrome.tabs even though I had the permission and such.

The fix is quite simple. In vue.config.js, simply change /js/[name].js to [name].js in the configureWebpack object and re-build your extension.

@sanyu1225
Copy link
Owner

great,next version will fixed

sanyu1225 added a commit that referenced this issue Mar 20, 2022
sanyu1225 added a commit that referenced this issue Mar 20, 2022
fix: issue-24 Service workers have to be in root directory #24
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