{"size": 675, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "selvaa89/ember-cli-iframe-resizer", "max_stars_repo_stars_event_min_datetime": "2016-10-27T16:02:10.000Z", "max_stars_repo_stars_event_max_datetime": "2016-12-30T00:13:31.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "selvaa89/ember-cli-iframe-resizer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "selvaa89/ember-cli-iframe-resizer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.1428571429, "max_line_length": 90, "alphanum_fraction": 0.6696296296}
/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-iframe-resizer',
  init: function(name) {
    this._super.init && this._super.init.apply(this, arguments);

    var assets_path = require('path').join('iframe-resizer','index.js');
    this.treePaths['vendor'] = require.resolve('iframe-resizer').replace(assets_path, '');
  },
  included: function(app) {
    var target = app.app || app;
    var options = target.options.iframeResizerOptions || {enabled: true};
    if (options.enabled) {
      target.import('vendor/iframe-resizer/js/iframeResizer.js');
      target.import('vendor/iframe-resizer/js/iframeResizer.contentWindow.js');
    }
  }
};
