+ // need to wait for DOM element to exist
+ setTimeout(function () {
+ $('iframe').on('load', function (e) {
+ if (!e.target.contentWindow.document.body) return;
+
+ e.target.contentWindow.document.body.style.display = 'flex'
+ e.target.contentWindow.document.body.style.justifyContent = 'center'
+ });
+ }, 0);