diff --git a/src/app/panels/file-panel.js b/src/app/panels/file-panel.js index 55cde39bab..1e3910f708 100644 --- a/src/app/panels/file-panel.js +++ b/src/app/panels/file-panel.js @@ -169,7 +169,7 @@ function filepanel (appAPI, filesProvider) { } var success = files.set(name, event.target.result) if (!success) modalDialogCustom.alert('Failed to create file ' + name) - else self.events.trigger('focus', [name]) + else self.event.trigger('focus', [name]) } fileReader.readAsText(file) }