summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-21 13:33:48 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-27 12:23:26 -0500
commita7fd95cd22062f18474ee038d72fa9e1139a1a84 (patch)
tree030507d4479a93eaf0fa737d31b778d9872dadc9 /app/controllers
parentc69a0779fb499fb3c8352eede0b5c6d7bb1117d1 (diff)
downloadgitlab-ce-a7fd95cd22062f18474ee038d72fa9e1139a1a84.tar.gz
Render viewer error synchronously so that 'view the source' link will work
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/concerns/renders_blob.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/renders_blob.rb b/app/controllers/concerns/renders_blob.rb
index ab9f0d01c7b..d478c3bb6ca 100644
--- a/app/controllers/concerns/renders_blob.rb
+++ b/app/controllers/concerns/renders_blob.rb
@@ -11,7 +11,7 @@ module RendersBlob
return render_404 unless viewer
render json: {
- html: view_to_html_string("projects/blob/_viewer", viewer: viewer)
+ html: view_to_html_string("projects/blob/_viewer", viewer: viewer, load_asynchronously: false)
}
end
end