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

Simplify conditions

parent 1278b5ce
...@@ -102,14 +102,12 @@ require('./flash'); ...@@ -102,14 +102,12 @@ require('./flash');
} }
clickTab(e) { clickTab(e) {
if (e.target) { if (e.target && gl.utils.isMetaClick(e)) {
const targetLink = e.target.getAttribute('href'); const targetLink = e.target.getAttribute('href');
if (gl.utils.isMetaClick(e)) {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
window.open(targetLink, '_blank'); window.open(targetLink, '_blank');
} }
} }
}
tabShown(e) { tabShown(e) {
const $target = $(e.target); const $target = $(e.target);
......
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