-
Notifications
You must be signed in to change notification settings - Fork 823
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
registerRoutes don't accept subclass of Route #636
Comments
Extra update: //Calls OK
workboxSW.router.registerRoute(new RegExp('^https://fonts.googleapis.com/*'), cacheFirst);
workboxSW.router.registerRoute('/my/custom/path/:id', networkFirst); |
I'm pretty sure this is due to #385. We need to address that underlying issue. |
@jeffposnick I've recently run into the same issue. Seems like #385 is pretty stale. Any avenue for me to help out here? |
After re-reading the initial request in this thread, and then realizing that |
Library Affected:
workbox-sw, workbox-routing
Browser & Platform:
all browsers.
Issue or Feature Request Description:
registerRoutes don't accept subclass of Route
When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.
** Console Output **
** Function throw error **
e instanceof b false
The text was updated successfully, but these errors were encountered: