diff options
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index d529e6bfda..dd8e68761b 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -51,6 +51,8 @@ copy_error: '{{.i18n.Tr "copy_error"}}', } }; + {{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}} + window.config.pageData = window.config.pageData || {}; </script> <link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml"> <link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png"> |