Skip to content

Commit

Permalink
Fixed demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Dec 8, 2023
1 parent 09ed39b commit 8b03635
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions example/email.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ th {
margin: 0;
}

body {
padding: 10px;
}

div.postal-email-header {
margin: 10px 0;
}
Expand Down
2 changes: 1 addition & 1 deletion example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1 class="text-body-emphasis">Front-end Email Parser Demo</h1>
</main>
</div>

<script src="../node_modules/iframe-resizer/js/iframeResizer.min.js"></script>
<script src="../node_modules/iframe-resizer/js/iframeResizer.js"></script>

<script type="module" src="./example.js"></script>
</body>
Expand Down

0 comments on commit 8b03635

Please sign in to comment.