Latest build deployed.
This commit is contained in:
Executable → Regular
+8
-2
@@ -33,8 +33,14 @@ window.addEventListener('message', function (event) {
|
||||
const iFrames = document.getElementsByTagName('iframe');
|
||||
for(const iFrame of iFrames) {
|
||||
if(iFrame.contentWindow === event.source) {
|
||||
if (edata.height) iFrame.height = edata.height;
|
||||
if (edata.width) iFrame.width = edata.width;
|
||||
if (edata.height) {
|
||||
iFrame.height = edata.height;
|
||||
iFrame.style.height = edata.height + 'px';
|
||||
}
|
||||
if (edata.width) {
|
||||
iFrame.width = edata.width;
|
||||
iFrame.style.width = edata.width + 'px';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user