mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 00:47:15 +08:00
FIX: an <a>
with a target of _blank wants a new window
This commit is contained in:
@ -6,7 +6,8 @@ export function wantsNewWindow(e) {
|
||||
e.shiftKey ||
|
||||
e.metaKey ||
|
||||
e.ctrlKey ||
|
||||
(e.button && e.button !== 0)
|
||||
(e.button && e.button !== 0) ||
|
||||
(e.target && e.target.target === "_blank")
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user