Skip to content

Commit

Permalink
Uses title HTML tag whenever is possible to update the page title. Cl…
Browse files Browse the repository at this point in the history
…oses liferay#185
  • Loading branch information
Fernando Souza committed Jan 6, 2017
1 parent b35ac77 commit a65aeaf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,14 @@ class App extends EventEmitter {
} else {
globals.window.history.pushState(state, title, path);
}
globals.document.title = title;

let titleNode = globals.document.querySelector('head title');
if (titleNode) {
titleNode.innerHTML = title;
}
else {
globals.document.title = title;
}
}

}
Expand Down

0 comments on commit a65aeaf

Please sign in to comment.