Skip to content

Commit

Permalink
Only return YES when we actually handled a user activity
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsj committed Aug 18, 2024
1 parent a86a3f4 commit 08cb813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Hammerspoon/MJAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ - (BOOL)application:(NSApplication *)application
//NSLog(@"Open URL in NSUserActivityTypeBrowsingWeb");
if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
[[NSWorkspace sharedWorkspace] openURL:userActivity.webpageURL];
return YES;
}
return YES;
return NO;
}


Expand Down

0 comments on commit 08cb813

Please sign in to comment.