summaryrefslogtreecommitdiff
path: root/source/options.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/options.tsx')
-rw-r--r--source/options.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/options.tsx b/source/options.tsx
index 6cbeecb9..87d412cb 100644
--- a/source/options.tsx
+++ b/source/options.tsx
@@ -212,7 +212,7 @@ function addEventListeners(): void {
select('[name="personalToken"]')!.addEventListener('input', validateToken);
// Ensure all links open in a new tab #3181
- delegate(document, '[href^="http"]', 'click', (event: delegate.Event<MouseEvent, HTMLAnchorElement>) => {
+ delegate(document, 'a[href^="http"]', 'click', event => {
event.preventDefault();
window.open(event.delegateTarget.href);
});