diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 21:10:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 21:10:10 +0300 |
commit | 69dec370722fbc4cfcb0ab4b59d86a770b45014c (patch) | |
tree | b6f3bd979006f6c246abc7151c8a12a218f2cda8 /app/assets/javascripts/snippets/components | |
parent | c642d6f861058068797fb5155d51c4c99797e4aa (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/snippets/components')
-rw-r--r-- | app/assets/javascripts/snippets/components/snippet_blob_view.vue | 4 |
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: { |