Skip to content

Commit

Permalink
Fix config prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-dockyard committed Jan 26, 2017
1 parent b432b84 commit 938ddb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Expand Up @@ -11,18 +11,18 @@ module.exports = {
this._super.included && this._super.included.apply(this, arguments);
this.app = app;
this.app.options = this.app.options || {};
this.app.options['service-worker-caching'] = this.app.options['service-worker-caching'] || {};
this.app.options['asset-cache'] = this.app.options['asset-cache'] || {};

this.app.options['service-worker-caching'].appName =
this.app.name || this.app.options['service-worker-caching'].appName;
this.app.options['asset-cache'].appName =
this.app.name || this.app.options['asset-cache'].appName;

if (this.app.options.fingerprint && this.app.options.fingerprint.enabled) {
this.app.options['service-worker-caching'].prepend = this.app.options.fingerprint.prepend;
this.app.options['asset-cache'].prepend = this.app.options.fingerprint.prepend;
}
},

treeForServiceWorker(swTree, appTree) {
var options = this.app.options['service-worker-caching'];
var options = this.app.options['asset-cache'];
var assetMapFile = new AssetMap([appTree], options);

return mergeTrees([swTree, assetMapFile]);
Expand Down

0 comments on commit 938ddb9

Please sign in to comment.