From: Cheng Zhao Date: Tue, 16 Jun 2015 02:08:32 +0000 (+0800) Subject: s/liste/listen X-Git-Tag: v0.28.2~15 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e96119fc3228e95d76020e6bc0e44d2c5faf50ef;p=electron.git s/liste/listen --- diff --git a/docs/api/app.md b/docs/api/app.md index 2d0e8219..d30c8c39 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -62,7 +62,12 @@ Emitted when application is quitting. * `event` Event * `path` String -Emitted when user wants to open a file with the application, it usually happens when the application is already opened and then OS wants to reuse the application to open file. But it is also emitted when a file is dropped onto the dock and the application is not yet running. Make sure to liste to open-file very early in your application startup to handle this case (even before the ready event is emitted). +Emitted when user wants to open a file with the application, it usually happens +when the application is already opened and then OS wants to reuse the +application to open file. But it is also emitted when a file is dropped onto the +dock and the application is not yet running. Make sure to listen to open-file +very early in your application startup to handle this case (even before the +`ready` event is emitted). You should call `event.preventDefault()` if you want to handle this event.