Skip to content

Commit 08cb813

Browse files
committed
Only return YES when we actually handled a user activity
1 parent a86a3f4 commit 08cb813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Hammerspoon/MJAppDelegate.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ - (BOOL)application:(NSApplication *)application
137137
//NSLog(@"Open URL in NSUserActivityTypeBrowsingWeb");
138138
if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
139139
[[NSWorkspace sharedWorkspace] openURL:userActivity.webpageURL];
140+
return YES;
140141
}
141-
return YES;
142+
return NO;
142143
}
143144

144145

0 commit comments

Comments
 (0)