Skip to content

Commit

Permalink
Fix ternary in activate call
Browse files Browse the repository at this point in the history
Part of xtermjs#1134
  • Loading branch information
Tyriar committed Aug 30, 2022
1 parent 99c47eb commit 284d9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/OscLinkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class OscLinkProvider implements ILinkProvider {
result.push({
text,
range,
activate: (e, text) => (linkHandler?.activate(e, text, range) || defaultActivate(e, text)),
activate: (e, text) => (linkHandler ? linkHandler.activate(e, text, range) : defaultActivate(e, text)),
hover: (e, text) => linkHandler?.hover?.(e, text, range),
leave: (e, text) => linkHandler?.leave?.(e, text, range)
});
Expand Down

0 comments on commit 284d9f9

Please sign in to comment.