diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 38b41cf2a19..9389b4b4ff1 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -330,7 +330,7 @@ import FeatureHelper from './helpers/feature_helper'; if (FeatureHelper.isNewRepo()) break; if ($('#tree-slider').length) new TreeView(); - if ($('#blob-viewer').length) new BlobViewer(); + if ($('.blob-viewer').length) new BlobViewer(); break; case 'projects:edit': setupProjectEdit();