olahol / react-social

Simple React components for social buttons (Facebook, Twitter and Pinterest) and social counts.
177 stars 60 forks source link

window.open(url, target) #20

Closed jetarin-min closed 8 years ago

jetarin-min commented 8 years ago

Hi, Is it possible to pass a prop target to define target type. I want pop up instead of new window. I saw on the code here if (typeof result === "object") { var url = result[0] var target = result[1] } else { var url = result var target = "_blank" } window.open(url, target); Thanks

olahol commented 8 years ago

In version 1.2.0 I've added a target prop, try it out and see if that's what you want :+1: