Skip to content

Commit d65a0ee

Browse files
juliusknorrAndyScherzinger
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 332a105 commit d65a0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Viewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export default defineComponent({
628628
629629
// swap title with original one
630630
const title = document.getElementsByTagName('head')[0].getElementsByTagName('title')[0]
631-
if (title && !title.dataset.old) {
631+
if (title && !title.dataset.old && fileName !== '') {
632632
title.dataset.old = document.title
633633
this.updateTitle(fileName)
634634
}

0 commit comments

Comments
 (0)