mirror of https://github.com/node-red/node-red.git
All plugin to clear header settings
parent
f01287c642
commit
2aa1887af6
|
|
@ -175,14 +175,16 @@ async function loadThemePlugin () {
|
|||
// update themeContext header image
|
||||
themeContext.header.image = result[0]
|
||||
}
|
||||
} else if (themePlugin.header.image === false) {
|
||||
themeContext.header.image = false
|
||||
}
|
||||
// if the plugin has a title
|
||||
if (themePlugin.header.title) {
|
||||
themeContext.header.title = themePlugin.header.title || themeContext.header.title
|
||||
if (themePlugin.header.hasOwnProperty('title')) {
|
||||
themeContext.header.title = themePlugin.header.title
|
||||
}
|
||||
// if the plugin has a header url
|
||||
if (themePlugin.header.url) {
|
||||
themeContext.header.url = themePlugin.header.url || themeContext.header.url
|
||||
if (themePlugin.header.hasOwnProperty('url')) {
|
||||
themeContext.header.url = themePlugin.header.url
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue