mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: properly register custom url evt handling (#20523)
This commit is contained in:
@@ -97,6 +97,7 @@ typedef NS_ENUM(NSInteger, AVAuthorizationStatusMac) {
|
||||
+ (AtomApplication*)sharedApplication;
|
||||
|
||||
- (void)setShutdownHandler:(base::Callback<bool()>)handler;
|
||||
- (void)registerURLHandler;
|
||||
|
||||
// CrAppProtocol:
|
||||
- (BOOL)isHandlingSendEvent;
|
||||
|
||||
@@ -153,7 +153,7 @@ inline void dispatch_sync_main(dispatch_block_t block) {
|
||||
[userActivity setNeedsSave:YES];
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
- (void)registerURLHandler {
|
||||
[[NSAppleEventManager sharedAppleEventManager]
|
||||
setEventHandler:self
|
||||
andSelector:@selector(handleURLEvent:withReplyEvent:)
|
||||
|
||||
Reference in New Issue
Block a user