Commit 82a05423 authored by Kushal Pandya's avatar Kushal Pandya

Simplify conditions

parent 1278b5ce
......@@ -102,12 +102,10 @@ require('./flash');
}
clickTab(e) {
if (e.target) {
if (e.target && gl.utils.isMetaClick(e)) {
const targetLink = e.target.getAttribute('href');
if (gl.utils.isMetaClick(e)) {
e.stopImmediatePropagation();
window.open(targetLink, '_blank');
}
e.stopImmediatePropagation();
window.open(targetLink, '_blank');
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment