Skip to content

Commit

Permalink
Make page-title fastboot compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-evans committed Jan 13, 2017
1 parent 388690a commit f52f9b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/initializers/page-title-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default {
initialize() {
// Remove <title> tags from the initial index.html page, so they can be correctly replaced
// and managed by ember-cli-head.
Ember.$('title').remove();
let titles = document.getElementsByTagName('title');
for (let i = 0, len = titles.length; i < len; i++) {
titles[i].remove();
}
},
};
};

0 comments on commit f52f9b6

Please sign in to comment.