All plugin to clear header settings

pull/5580/head
Nick O'Leary 2026-03-23 11:23:03 +00:00
parent f01287c642
commit 2aa1887af6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 6 additions and 4 deletions

View File

@ -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
}
}