Skip to content

Commit

Permalink
Update iframeResizer.js (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxdental authored and davidjbradshaw committed Oct 28, 2018
1 parent 7757e73 commit 684875d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/iframeResizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,13 @@

function setSize(messageData) {
function setDimension(dimension) {
if (!messageData.id) {
log(
'undefined',
'messageData id not set'
);
return;
}
messageData.iframe.style[dimension] = messageData[dimension] + 'px';
log(
messageData.id,
Expand Down Expand Up @@ -1069,4 +1076,4 @@
window.iFrameResize = window.iFrameResize || factory();
}

})();
})();

0 comments on commit 684875d

Please sign in to comment.