zipfworks/ember-prerender

View on GitHub
example/app/initializers/meta.js

Summary

Maintainability
A
0 mins
Test Coverage
import Ember from 'ember';
import ENV from 'example/config/environment';

export default {
  name: 'meta',
  initialize: function() {
    ENV.APP.DEFAULT_PAGE_TITLE = document.title;

    Ember.$('head').append(
      Ember.$('<script>', {
        id: 'meta-start',
        type: 'text/x-placeholder'
      }),
      Ember.$('<script>', {
        id: 'meta-end',
        type: 'text/x-placeholder'
      })
    );
  }
};