diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-26 10:09:07 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:27 -0500 |
commit | 95658fb62a955a40260d5b7c4ccd51ce72ae1fb9 (patch) | |
tree | 6f8f5be3b4f9d1a070b31a8fc29e5404300ff5dd /app | |
parent | dc4726f0a707019c64e60e58d45bb647a43d4ec8 (diff) | |
download | gitlab-ce-95658fb62a955a40260d5b7c4ccd51ce72ae1fb9.tar.gz |
Fixed failing JS tests
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/blob/viewer/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob/viewer/index.js b/app/assets/javascripts/blob/viewer/index.js index 8a5fb187a71..7efa8537298 100644 --- a/app/assets/javascripts/blob/viewer/index.js +++ b/app/assets/javascripts/blob/viewer/index.js @@ -1,4 +1,3 @@ -/* eslint-disable no-new */ /* global Flash */ export default class BlobViewer { constructor() { @@ -76,6 +75,7 @@ export default class BlobViewer { url, dataType: 'JSON', }) + .fail(() => new Flash('Error loading source view')) .done((data) => { viewer.innerHTML = data.html; $(viewer).syntaxHighlight(); |