Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed Apr 4, 2025
commit 4e9d80747c924812bc92a411c7acb7458e1fc608
2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ export default defineComponent({

// swap title with original one
const title = document.getElementsByTagName('head')[0].getElementsByTagName('title')[0]
if (title && !title.dataset.old) {
if (title && !title.dataset.old && fileName !== '') {
title.dataset.old = document.title
this.updateTitle(fileName)
}
Expand Down
Loading