A webmail client. Forked from https://git.sr.ht/~migadu/alps
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

19 linhas
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. }