mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
docs: clarify open-url not preventable (#37564)
docs: clarify open-url not preventable
This commit is contained in:
@@ -127,8 +127,6 @@ Emitted when the user wants to open a URL with the application. Your application
|
||||
`Info.plist` file must define the URL scheme within the `CFBundleURLTypes` key, and
|
||||
set `NSPrincipalClass` to `AtomApplication`.
|
||||
|
||||
You should call `event.preventDefault()` if you want to handle this event.
|
||||
|
||||
As with the `open-file` event, be sure to register a listener for the `open-url`
|
||||
event early in your application startup to detect if the the application being
|
||||
is being opened to handle a URL. If you register the listener in response to a
|
||||
|
||||
Reference in New Issue
Block a user