Skip to content

Instantly share code, notes, and snippets.

@nextend
Created December 4, 2018 08:46
Show Gist options
  • Save nextend/4edbc1307aa303f1ec98f033f8c53953 to your computer and use it in GitHub Desktop.
Save nextend/4edbc1307aa303f1ec98f033f8c53953 to your computer and use it in GitHub Desktop.
jQuery(window).on("message", function(e) {
if(e.originalEvent.origin === 'https://e.infogram.com'){
var data = e.originalEvent.data;
if(typeof data === 'string' && data.substr(0, 12) === 'iframeHeight'){
setTimeout(function(){
jQuery(window).trigger('SliderContentResize');
}, 200);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment