From 7615743aa533b915c332ec4700c68cb9e32e86d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 8 Feb 2016 09:20:07 -0500 Subject: [PATCH] Update theme.js --- red/api/theme.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/red/api/theme.js b/red/api/theme.js index ae8c260b2..3866c1eaf 100644 --- a/red/api/theme.js +++ b/red/api/theme.js @@ -23,7 +23,8 @@ var clone = require("clone"); var defaultContext = { page: { title: "Node-RED", - favicon: "favicon.ico" + favicon: "favicon.ico", + tabicon: "red/images/node-red-icon-black.svg" }, header: { title: "Node-RED", @@ -94,6 +95,13 @@ module.exports = { themeContext.page.favicon = url; } } + + if (theme.page.tabicon) { + url = serveFile(themeApp,"/tabicon/",theme.page.tabicon) + if (url) { + themeContext.page.tabicon = url; + } + } themeContext.page.title = theme.page.title || themeContext.page.title; }