diff --git a/src/js/mail-content-loader.js b/src/js/mail-content-loader.js new file mode 100644 index 0000000..3076fb9 --- /dev/null +++ b/src/js/mail-content-loader.js @@ -0,0 +1,17 @@ +(function() { + 'use strict'; + + console.log('Mail content frame loaded'); + + // set listender + window.onmessage = function(e) { + console.log('Mail content data loaded'); + // insert html into sandboxed iframe + document.getElementById('mailContentDiv').innerHTML = e.data; + + // get new height and post message back to parent frame + //var newHeight = document.body.scrollHeight; + //e.source.postMessage(newHeight, e.origin); + }; + +}()); \ No newline at end of file diff --git a/src/mail-content.html b/src/mail-content.html new file mode 100644 index 0000000..3f108b0 --- /dev/null +++ b/src/mail-content.html @@ -0,0 +1,16 @@ + + + + + Mail + + + + + + + +
+ + + \ No newline at end of file