Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-10 21:10:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-10 21:10:10 +0300
commit69dec370722fbc4cfcb0ab4b59d86a770b45014c (patch)
treeb6f3bd979006f6c246abc7151c8a12a218f2cda8 /app/assets/javascripts/snippets
parentc642d6f861058068797fb5155d51c4c99797e4aa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/snippets')
-rw-r--r--app/assets/javascripts/snippets/components/snippet_blob_view.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/snippets/components/snippet_blob_view.vue b/app/assets/javascripts/snippets/components/snippet_blob_view.vue
index 86cbc2c31b3..360ffdd34e0 100644
--- a/app/assets/javascripts/snippets/components/snippet_blob_view.vue
+++ b/app/assets/javascripts/snippets/components/snippet_blob_view.vue
@@ -53,7 +53,9 @@ export default {
return {
blobContent: '',
activeViewerType:
- this.blob?.richViewer && !window.location.hash ? RICH_BLOB_VIEWER : SIMPLE_BLOB_VIEWER,
+ this.blob?.richViewer && !window.location.hash?.startsWith('#LC')
+ ? RICH_BLOB_VIEWER
+ : SIMPLE_BLOB_VIEWER,
};
},
computed: {