исправлено открытие табов в фоксе

This commit is contained in:
Alexey Kasyanchuk 2017-02-04 12:31:18 +03:00
parent e1609eb307
commit cdc7a2ec6f

View File

@ -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)