Skip to content

Commit

Permalink
Merge pull request #141 from felixaschultz:development
Browse files Browse the repository at this point in the history
Fixed error with null iframe
  • Loading branch information
felixaschultz authored Nov 10, 2023
2 parents d545393 + d242bab commit 28c1fcc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
9 changes: 8 additions & 1 deletion cb.js

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions dev/cb.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,17 @@ function setIntastellarPartnerDomain(){
}

setIntastellarPartnerDomain();
const instatellariframe = document.getElementById("intastellarCrossSiteCheck");
const iframeDoc = instatellariframe.contentDocument || instatellariframe.contentWindow.document;
if ( iframeDoc.readyState == 'complete' ) {
//iframe.contentWindow.alert("Hello");
instatellariframe.contentWindow.addEventListener("load", function(){
console.log("iframe loaded");

})
}
if(document.getElementById("intastellarCrossSiteCheck") != null){
const instatellariframe = document.getElementById("intastellarCrossSiteCheck");
const iframeDoc = instatellariframe.contentDocument || instatellariframe.contentWindow.document;
if ( iframeDoc.readyState == 'complete' ) {
//iframe.contentWindow.alert("Hello");
instatellariframe.contentWindow.addEventListener("load", function(){
console.log("iframe loaded");

})
}
}

/* - - - Set the intastellarCookieLanguageuage dependent messages */

Expand Down

0 comments on commit 28c1fcc

Please sign in to comment.