Created
December 4, 2018 08:46
-
-
Save nextend/4edbc1307aa303f1ec98f033f8c53953 to your computer and use it in GitHub Desktop.
This file contains 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
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