diff --git a/index.js b/index.js index 425fb11..c0e8676 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,13 @@ module.exports = { this._super.included(app); if (process.env.EMBER_CLI_FASTBOOT !== 'true') { - app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js'); - app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/css/bootstrap-datepicker.css'); + if (typeof this.import === 'function' && !app.bowerDirectory) { + this.import('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js'); + this.import('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css'); + } else { + app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js'); + app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/css/bootstrap-datepicker.css'); + } } } };