diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index c3e7ad44..fe3fbf56 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -629,10 +629,16 @@ var CodeOceanEditor = { }, isActiveFileBinary: function () { + if (this.active_frame.data() === undefined) { + return false; + } return 'binary' in this.active_frame.data(); }, isActiveFileExecutable: function () { + if (this.active_frame.data() === undefined) { + return false; + } return 'executable' in this.active_frame.data(); },