Fix indentaition in *.js files (auto-fix by ESLint)
[MAILPOET-1829]
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user