Update src/main-process/atom-application.js

Co-Authored-By: smashwilson <smashwilson@github.com>
This commit is contained in:
Jason Rudolph
2019-04-23 16:37:03 -04:00
committed by GitHub
parent 68af9d1565
commit 9747f747c6

View File

@@ -599,7 +599,7 @@ class AtomApplication extends EventEmitter {
// Triggered by the 'open-file' event from Electron:
// https://electronjs.org/docs/api/app#event-open-file-macos
// For example, this is fired when a file is dragged and dropped onto the dock.
// For example, this is fired when a file is dragged and dropped onto the Atom application icon in the dock.
this.disposable.add(ipcHelpers.on(app, 'open-file', (event, pathToOpen) => {
event.preventDefault()
this.openPath({pathToOpen})