1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Update service worker script

This commit is contained in:
Paulus Schoutsen
2016-07-13 19:10:45 -07:00
parent 757faf9f09
commit 7be7cf463c
+2 -2
View File
@@ -41,7 +41,7 @@ var dynamicUrlToDependencies = {};
Object.keys(appPaths).forEach(ap => {
dynamicUrlToDependencies[ap] = [
rootDir + '/frontend.html', rootDir + '/core.js',
] + appPaths[ap].map(val => rootDir + val);
].concat(appPaths[ap].map(val => rootDir + val));
});
// Create fingerprinted versions of our dependencies.
@@ -67,4 +67,4 @@ swPrecache.write(path.join('build', 'service_worker.js'), {
],
stripPrefix: '..',
replacePrefix: 'static',
});
}).catch(err => console.error(err));