исправлено открытие табов в фоксе
This commit is contained in:
parent
e1609eb307
commit
cdc7a2ec6f
@ -156,7 +156,19 @@ const torrent = props.torrent;
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<ListItem
|
<ListItem
|
||||||
onClick={() => window.router('/torrent/' + torrent.hash)}
|
onClick={(e) => {
|
||||||
|
const link = '/torrent/' + torrent.hash;
|
||||||
|
if(e.button === 1)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if(e.ctrlKey && e.button === 0) {
|
||||||
|
let win = window.open(link, '_blank');
|
||||||
|
//win.focus();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.router(link)
|
||||||
|
}}
|
||||||
primaryText={
|
primaryText={
|
||||||
<a href={'/torrent/' + torrent.hash} ref={(node) => {
|
<a href={'/torrent/' + torrent.hash} ref={(node) => {
|
||||||
if(node)
|
if(node)
|
||||||
|
Loading…
Reference in New Issue
Block a user