0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fix ghost_head helper to not run if error page.

issue #6289
- Made quick fix to return from ghost_head helper if error page
This commit is contained in:
JT Turner 2016-01-05 23:31:46 -08:00
parent 268600d794
commit 3af224ed39

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;