viewer: fix title changes
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/888/head
parent
d048b7b3bf
commit
0f33ca1aa2
|
@ -404,11 +404,9 @@ export default defineComponent({
|
||||||
|
|
||||||
/** Update the document title */
|
/** Update the document title */
|
||||||
updateTitle(photo: IPhoto | undefined) {
|
updateTitle(photo: IPhoto | undefined) {
|
||||||
if (!this.originalTitle) {
|
this.originalTitle ||= document.title;
|
||||||
this.originalTitle = document.title;
|
|
||||||
}
|
|
||||||
if (photo) {
|
if (photo) {
|
||||||
document.title = `${photo.basename} - ${globalThis.OCA?.Theming?.name}`;
|
document.title = `${photo.basename} - ${this.originalTitle}`;
|
||||||
} else {
|
} else {
|
||||||
document.title = this.originalTitle;
|
document.title = this.originalTitle;
|
||||||
this.originalTitle = null;
|
this.originalTitle = null;
|
||||||
|
|
Loading…
Reference in New Issue