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:
commit
816e773f93
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue