From 8b03635c3df2ac9e92688e7f9c1958308e916766 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 8 Dec 2023 14:22:01 +0200 Subject: [PATCH] Fixed demo --- example/email.css | 4 ++++ example/example.js | 2 +- example/index.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/example/email.css b/example/email.css index 016f463..7d76359 100644 --- a/example/email.css +++ b/example/email.css @@ -8,6 +8,10 @@ th { margin: 0; } +body { + padding: 10px; +} + div.postal-email-header { margin: 10px 0; } diff --git a/example/example.js b/example/example.js index 3d0849b..acc9fde 100644 --- a/example/example.js +++ b/example/example.js @@ -163,7 +163,7 @@ function renderEmail(email) { htmlIframe.contentWindow.document.close(); const iframeScript = document.createElement('script'); - iframeScript.setAttribute('src', '../node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js'); + iframeScript.setAttribute('src', '../node_modules/iframe-resizer/js/iframeResizer.contentWindow.js'); htmlIframe.contentWindow.document.getElementsByTagName('head')[0].appendChild(iframeScript); const cssLink = document.createElement('link'); diff --git a/example/index.html b/example/index.html index f10fe58..8cbac72 100644 --- a/example/index.html +++ b/example/index.html @@ -172,7 +172,7 @@

Front-end Email Parser Demo

- +