Always render "browser not supported" alert and disable it for supported browsers
This commit is contained in:
@ -16,9 +16,8 @@ $(document).on('turbolinks:load', function() {
|
||||
|
||||
if ($('#editor').isPresent() && CodeOceanEditor) {
|
||||
if (CodeOceanEditor.isBrowserSupported()) {
|
||||
$('#alert').hide();
|
||||
CodeOceanEditor.initializeEverything();
|
||||
} else {
|
||||
$('#alert').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user