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

Request scheme 'chrome-extension' is unsupported #1269

Closed
pdw207 opened this issue Feb 24, 2017 · 1 comment
Closed

Request scheme 'chrome-extension' is unsupported #1269

pdw207 opened this issue Feb 24, 2017 · 1 comment

Comments

@pdw207
Copy link

pdw207 commented Feb 24, 2017

Uncaught (in promise) TypeError: Request scheme 'chrome-extension' is unsupported
at sw.js:formatted:279
screen shot 2017-02-24 at 3 02 41 pm

@pdw207 pdw207 closed this as completed Feb 24, 2017
@naiborhujosua
Copy link

if (handler) {
event.respondWith(handler(event.request));
} else if (router.default && event.request.method === 'GET') {
event.respondWith(router.default(event.request));
}
That else if clause should probably check the protocol of event.request to confirm that it's https: as an additional condition.

check this answer GoogleChromeLabs/sw-toolbox#171

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants