{"size": 327, "ext": "js", "max_stars_repo_path": "tests/dummy/app/routes/client-server-two.js", "max_stars_repo_name": "raido/ember-window-messenger", "max_stars_repo_stars_event_min_datetime": "2015-10-20T12:52:07.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-15T16:20:20.000Z", "max_issues_repo_path": "tests/dummy/app/routes/client-server-two.js", "max_issues_repo_name": "raido/ember-window-messenger", "max_issues_repo_issues_event_min_datetime": "2016-01-13T11:59:14.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-24T12:53:24.000Z", "max_forks_repo_path": "tests/dummy/app/routes/client-server-two.js", "max_forks_repo_name": "raido/ember-window-messenger", "max_forks_repo_forks_event_min_datetime": "2016-12-22T00:20:41.000Z", "max_forks_repo_forks_event_max_datetime": "2019-01-10T22:32:25.000Z"}
{"max_stars_count": 21, "max_issues_count": 33, "max_forks_count": 5, "avg_line_length": 21.8, "max_line_length": 54, "alphanum_fraction": 0.620795107}
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';

export default Route.extend({
  server: service('window-messenger-server'),

  init() {
    this._super(...arguments);

    this.get('server').on('popup-name', (resolve) => {
      resolve('I am a popup window :)');
    });
  }
});
