Skip to content

Commit

Permalink
Frontend: Set page title on the search page based on site config #3439
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed Jun 2, 2023
1 parent 1554e00 commit ef49ebe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef49ebe

Please sign in to comment.