diff --git a/src/postmate.js b/src/postmate.js index 0196f0ae..0f1b6470 100644 --- a/src/postmate.js +++ b/src/postmate.js @@ -266,10 +266,12 @@ class Postmate { url, name, classListArray = [], + allow }) { // eslint-disable-line no-undef this.parent = window this.frame = document.createElement('iframe') - this.frame.name = name || '' + if(name) this.frame.name = name + if(allow) this.frame.allow = allow this.frame.classList.add.apply(this.frame.classList, classListArray) container.appendChild(this.frame) this.child = this.frame.contentWindow || this.frame.contentDocument.parentWindow