Skip to content

Commit

Permalink
Merge pull request #5 from astronomersiva/fix-for-engines
Browse files Browse the repository at this point in the history
Fix to work with engines
  • Loading branch information
astronomersiva authored Mar 13, 2019
2 parents eaa31e8 + f193e12 commit fc8e278
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 71 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ module.exports = {
}
},

included: function colpick_included() {
included: function() {
this._super.included.apply(this, arguments);

let findHost = this._findHost;
let app = findHost.call(this);

this.app = app;

let pickr = path.join('node_modules', 'pickr-widget', 'dist');
this.app.import(path.join(pickr, 'pickr.min.css'));
app.import(path.join(pickr, 'pickr.min.css'));
}
};
Loading

0 comments on commit fc8e278

Please sign in to comment.