@@ -127,10 +127,6 @@ module.exports = function(crowi, app, req, locals) {
return process.env.HACKMD_URI != null;
};
- locals.customHeader = function() {
- return configManager.getConfig('crowi', 'customize:header') || '';
- };
-
locals.parentPath = function(path) {
if (path === '/') {
return path;
@@ -12,7 +12,7 @@
<meta name="apple-mobile-web-app-title" content="{{ appService.getAppTitle() }}">
- {{ customHeader() }}
+ {{ getConfig('crowi', 'customize:header') | default('') }}
{% include '../widget/headers/favicon.html' %}
{% include '../widget/headers/ie11-polyfills.html' %}
@@ -6,7 +6,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- polyfills for IE11 -->
<script>