]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: open-file and open-url events are only available on OS X
authorVincent Quagliaro <vincentq@theodo.fr>
Thu, 26 Nov 2015 08:05:02 +0000 (09:05 +0100)
committerVincent Quagliaro <vincentq@theodo.fr>
Thu, 26 Nov 2015 08:09:45 +0000 (09:09 +0100)
docs/api/app.md

index 00aade7c54ab143592ca026e1cdc2591b7b2966d..cf4284586d1df9b1b26546d2da5b4034e1512d11 100644 (file)
@@ -66,7 +66,7 @@ the `will-quit` and `window-all-closed` events.
 
 Emitted when the application is quitting.
 
-### Event: 'open-file'
+### Event: 'open-file' _OS X_
 
 Returns:
 
@@ -82,7 +82,9 @@ handle this case (even before the `ready` event is emitted).
 
 You should call `event.preventDefault()` if you want to handle this event.
 
-### Event: 'open-url'
+On Windows, you have to parse `process.argv` to get the filepath.
+
+### Event: 'open-url' _OS X_
 
 Returns: