Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #71 from PolymerElements/no-cache-id-fix
Browse files Browse the repository at this point in the history
Use default cacheName when there is no cacheId
  • Loading branch information
wibblymat committed Oct 2, 2015
2 parents ab618a1 + bb51a48 commit 4740404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bootstrap/sw-toolbox-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
(function(global) {
var swToolboxURL = new URL('../sw-toolbox/sw-toolbox.js', global.params.get('baseURI')).href;
importScripts(swToolboxURL);
if (global.params.has('cacheId')) {
global.toolbox.options.cacheName = global.params.get('cacheId') + '$$$' +
global.registration.scope;

var cacheId = global.params.get('cacheId');
if (cacheId) {
global.toolbox.options.cacheName = cacheId + '$$$' + global.registration.scope;
}

if (global.params.has('defaultCacheStrategy')) {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "platinum-sw",
"private": true,
"version": "1.2.2",
"version": "1.2.3",
"license": "http://polymer.github.io/LICENSE.txt",
"authors": [
"The Polymer Authors"
Expand Down

0 comments on commit 4740404

Please sign in to comment.