A webmail client. Forked from https://git.sr.ht/~migadu/alps
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

19 wiersze
604 B

  1. var emailFrame = document.getElementById("email-frame");
  2. if (emailFrame) {
  3. // Resize the frame with its content
  4. var resizeFrame = function() {
  5. emailFrame.style.height = emailFrame.contentWindow.document.documentElement.scrollHeight + "px";
  6. };
  7. emailFrame.addEventListener("load", resizeFrame);
  8. emailFrame.contentWindow.addEventListener("resize", resizeFrame);
  9. // Polyfill in case the srcdoc attribute isn't supported
  10. if (!emailFrame.srcdoc) {
  11. var srcdoc = emailFrame.getAttribute("srcdoc");
  12. var doc = emailFrame.contentWindow.document;
  13. doc.open();
  14. doc.write(srcdoc);
  15. doc.close();
  16. }
  17. }