Merge pull request #798 from natcl/master

Add pinned tab icon for Safari
This commit is contained in:
Dave Conway-Jones
2016-06-17 14:24:36 +01:00
committed by GitHub
3 changed files with 19 additions and 1 deletions

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",
@@ -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;
}