diff --git a/app/assets/javascripts/editor.js b/app/assets/javascripts/editor.js index 971c16ff..cfbd8b49 100644 --- a/app/assets/javascripts/editor.js +++ b/app/assets/javascripts/editor.js @@ -965,7 +965,7 @@ $(function() { } var initializeCodePilot = function() { - if ($('#questions-column').isPresent() && QaApi.isBrowserSupported()) { + if ($('#questions-column').isPresent() && (typeof QaApi != 'undefined') && QaApi.isBrowserSupported()) { $('#editor-column').addClass('col-md-8').removeClass('col-md-10'); $('#questions-column').addClass('col-md-3');