react-pinterest
react-pinterest copied to clipboard
Update PinterestPinWidget.js to handle HTTPS
Since the URLs returned are hard-coded to HTTP, on a forced-HTTPS site this throws a Mixed Content warning for every image rendered into the widget (in our case, that's 200 warning!). This change auto-detects the current protocol, then replaces the URL's protocol to HTTPS if need be.