Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #75 from Cybermaxs/soasta-2015
Browse files Browse the repository at this point in the history
fixes #74
  • Loading branch information
bluesmoon committed Mar 17, 2016
2 parents 009c897 + 84b2ee5 commit 4e1a55a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion boomerang.js
Expand Up @@ -735,7 +735,17 @@ BOOMR_check_doc_domain();
document.body.appendChild(iframe);

// Add the form to the iframe
iframe.appendChild(form);
var iFrmDocument = (iframe.contentWindow || iframe.contentDocument);
if (iFrmDocument.document) {
iFrmDocument = iFrmDocument.document;
}
if (iFrmDocument.body) {
iFrmDocument.body.appendChild(form);
}
else {
//body may be null, so add to the document
iFrmDocument.appendChild(form);
}

try {
form.submit();
Expand Down

0 comments on commit 4e1a55a

Please sign in to comment.