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:
parent
dcaa0eeea4
commit
7615743aa5
@ -23,7 +23,8 @@ var clone = require("clone");
|
|||||||
var defaultContext = {
|
var defaultContext = {
|
||||||
page: {
|
page: {
|
||||||
title: "Node-RED",
|
title: "Node-RED",
|
||||||
favicon: "favicon.ico"
|
favicon: "favicon.ico",
|
||||||
|
tabicon: "red/images/node-red-icon-black.svg"
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
title: "Node-RED",
|
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;
|
themeContext.page.title = theme.page.title || themeContext.page.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user