Skip to content

Commit dffab59

Browse files
authored
Merge pull request #2793 from nextcloud/backport/2789/stable31
[stable31] fix: Do not update page title for single file public shares
2 parents c4f7b84 + aa7f480 commit dffab59

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

‎css/main-Cy9Pa_3_.chunk.css‎ renamed to ‎css/main-tIlk5kmC.chunk.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎css/viewer-main.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* extracted by css-entry-points-plugin */
2-
@import './main-Cy9Pa_3_.chunk.css';
2+
@import './main-tIlk5kmC.chunk.css';
33
@import './logger-60RCWKf0.chunk.css';

‎js/viewer-main.mjs‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎js/viewer-main.mjs.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎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)