/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-toastr',

  included: function(app, parentAddon) {
    var target = (parentAddon || app);
    var bowerDir = target.bowerDirectory;

    target.import(bowerDir + '/toastr/toastr.js');
    target.import(bowerDir + '/toastr/toastr.css');
  }
};

/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-toastr',

  included: function(app, parentAddon) {
    var target = (parentAddon || app);
    if (target.app) {
      target = target.app;
    }
    var bowerDir = target.bowerDirectory;

    target.import(bowerDir + '/toastr/toastr.js');
    target.import(bowerDir + '/toastr/toastr.css');
  }
};

Add support for use in nested addons
Add support for use in nested addons

h/t https://github.com/ember-cli/ember-cli/issues/3718#issuecomment-182526160
