Always render "browser not supported" alert and disable it for supported browsers

This commit is contained in:
Sebastian Serth
2020-03-03 18:13:30 +01:00
parent 8fa37842af
commit ca82e4000a
3 changed files with 5 additions and 5 deletions

View File

@ -16,9 +16,8 @@ $(document).on('turbolinks:load', function() {
if ($('#editor').isPresent() && CodeOceanEditor) {
if (CodeOceanEditor.isBrowserSupported()) {
$('#alert').hide();
CodeOceanEditor.initializeEverything();
} else {
$('#alert').show();
}
}
});