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 = {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user