PolymerElements / platinum-sw

Service Worker Polymer element
67 stars 16 forks source link

If no cacheId is provided, use the correct default #69

Closed wibblymat closed 9 years ago

wibblymat commented 9 years ago

Currently, if you have a precache file with no cacheId the parameters sent to the SW will have {"cacheId": ""}. In sw-toolbox-setup.js we check only that params.has('cacheId'), and not that it is a truthy value. Therefore we construct a new default cacheName with the empty string as a base.

wibblymat commented 9 years ago

Don't think this actually works, never mind.