Fix indentaition in *.js files (auto-fix by ESLint)

[MAILPOET-1829]
This commit is contained in:
Jan Jakeš
2019-02-20 12:25:33 +01:00
committed by M. Shull
parent a2e89039c6
commit bb658f77ec
67 changed files with 10595 additions and 10595 deletions

View File

@@ -1,24 +1,24 @@
import mp from 'mailpoet';
var MailPoet = mp;
MailPoet.Iframe = {
marginY: 20,
autoSize: function autoSize(iframe) {
if (!iframe) return;
var MailPoet = mp;
MailPoet.Iframe = {
marginY: 20,
autoSize: function autoSize(iframe) {
if (!iframe) return;
this.setSize(
iframe,
iframe.contentWindow.document.body.scrollHeight
);
},
setSize: function setSize(sizeIframe, i) {
var iframe = sizeIframe;
if (!iframe) return;
this.setSize(
iframe,
iframe.contentWindow.document.body.scrollHeight
);
},
setSize: function setSize(sizeIframe, i) {
var iframe = sizeIframe;
if (!iframe) return;
iframe.style.height = (
parseInt(i, 10) + this.marginY
) + 'px';
}
};
iframe.style.height = (
parseInt(i, 10) + this.marginY
) + 'px';
}
};
export default MailPoet;