Skip to content

Commit

Permalink
posting a message to the parent in case of an error for the iframe ex…
Browse files Browse the repository at this point in the history
…ample
  • Loading branch information
dmengelt committed Sep 11, 2024
1 parent c6e46ce commit 3a3a2c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/iframed.html
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
      .catch(function(err) {
        // show error in developer console for debugging
        console.error(err);
window.parent.postMessage("An error occured: " + error, "https://dmengelt.github.io");
      });
}

Expand Down

0 comments on commit 3a3a2c6

Please sign in to comment.