fix: properly register custom url evt handling (#20518)

This commit is contained in:
Shelley Vohr 2019-10-10 17:54:03 +02:00 committed by Samuel Attard
parent ec2c1db0e4
commit 812de5d3bf
5 changed files with 9 additions and 1 deletions

View file

@ -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:)