0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Merge pull request #6298 from jtwebman/fix_ghost_head_on_error_page

Fix ghost_head helper to not run if error page.
This commit is contained in:
Hannah Wolfe 2016-01-09 13:42:03 +00:00
commit 816e773f93

View file

@ -289,6 +289,11 @@ function getAjaxHelper(clientId, clientSecret) {
}
ghost_head = function (options) {
// if error page do nothing
if (this.code >= 400) {
return;
}
// create a shortcut for theme config
blog = config.theme;