diff --git a/app/assets/javascripts/editor.js b/app/assets/javascripts/editor.js index e0468936..465e2f49 100644 --- a/app/assets/javascripts/editor.js +++ b/app/assets/javascripts/editor.js @@ -14,7 +14,7 @@ $(document).on('turbolinks:load', function(event) { CodeOceanEditorRequestForComments ); - if ($('#editor').isPresent() && CodeOceanEditor && event.originalEvent.data.url.endsWith("/implement")) { + if ($('#editor').isPresent() && CodeOceanEditor && event.originalEvent.data.url.includes("/implement")) { if (CodeOceanEditor.isBrowserSupported()) { $('#alert').hide(); // This call will (amon other things) initializeEditors and load the content except for the last line