diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/js/instagram.js')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/js/instagram.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/jetpack/modules/shortcodes/js/instagram.js b/plugins/jetpack/modules/shortcodes/js/instagram.js deleted file mode 100644 index dfcc09ea..00000000 --- a/plugins/jetpack/modules/shortcodes/js/instagram.js +++ /dev/null @@ -1,21 +0,0 @@ -/* global window */ - -(function() { - var instagramEmbed = function() { - if ( 'undefined' !== typeof window.instgrm && window.instgrm.Embeds && 'function' === typeof window.instgrm.Embeds.process ) { - window.instgrm.Embeds.process(); - } else { - var s = document.createElement( 'script' ); - s.async = true; - s.defer = true; - s.src = '//platform.instagram.com/en_US/embeds.js'; - document.getElementsByTagName( 'body' )[0].appendChild( s ); - } - }; - - if ( 'undefined' !== typeof jQuery && 'undefined' !== typeof infiniteScroll ) { - jQuery( document.body ).on( 'post-load', instagramEmbed ); - } - - instagramEmbed(); -})();
\ No newline at end of file |