1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update theme.js

This commit is contained in:
Nathanaël Lécaudé 2016-02-08 09:20:07 -05:00
parent dcaa0eeea4
commit 7615743aa5

View File

@ -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",
@ -95,6 +96,13 @@ module.exports = {
}
}
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;
}