This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react' | |
import { connect } from 'react-redux' | |
// one-time init of the embedly platform.js, hidden behind | |
// typeof check not to blow up on server-side render | |
if (typeof window !== 'undefined') { | |
let init_embedly = function(w,d){ | |
var id='embedly-platform', n = 'script'; | |
if (!d.getElementById(id)){ | |
w.embedly = w.embedly || function() {(w.embedly.q = w.embedly.q || []).push(arguments);}; |