Skip to content

Commit 27bc44f

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Do not update page title for single file public shares
The filename is empty and is alerady set on page load Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent e257d19 commit 27bc44f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/Viewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ export default defineComponent({
634634
635635
// swap title with original one
636636
const title = document.getElementsByTagName('head')[0].getElementsByTagName('title')[0]
637-
if (title && !title.dataset.old) {
637+
if (title && !title.dataset.old && fileName !== '') {
638638
title.dataset.old = document.title
639639
this.updateTitle(fileName)
640640
}

0 commit comments

Comments
 (0)