From 9f8a054f8865ca95f67ae20f7a3b721367d6df9a Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Thu, 25 Apr 2019 12:50:35 -0700 Subject: [PATCH] feat: accept web.primary_color as config option and inject into webui (#1282) --- src/api/web/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/web/index.js b/src/api/web/index.js index 2a139df7d..dedea9b23 100644 --- a/src/api/web/index.js +++ b/src/api/web/index.js @@ -67,6 +67,7 @@ module.exports = function(config, auth, storage) { .replace(/ToReplaceByVersion/g, pkgJSON.version) .replace(/ToReplaceByTitle/g, _.get(config, 'web.title') ? config.web.title : WEB_TITLE) .replace(/ToReplaceByLogo/g, _.get(config, 'web.logo') ? config.web.logo : '') + .replace(/ToReplaceByPrimaryColor/g, _.get(config, 'web.primary_color') ? config.web.primary_color : '') .replace(/ToReplaceByScope/g, _.get(config, 'web.scope') ? config.web.scope : ''); res.setHeader('Content-Type', HEADERS.TEXT_HTML);