Frontend: Set page title on the search page based on site config #3439

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-06-02 12:42:20 +02:00
parent 1554e00039
commit ef49ebe5a9

View file

@ -232,9 +232,7 @@ config.update().finally(() => {
} else {
config.page.title = config.values.name;
if (!config.values.sponsor) {
window.document.title = config.values.name;
} else if (config.values.siteCaption === "") {
if (config.values.siteCaption === "") {
window.document.title = config.values.siteTitle;
} else {
window.document.title = config.values.siteCaption;