Skip to content

Commit

Permalink
Let's try to resize the terminal again for #6!
Browse files Browse the repository at this point in the history
  • Loading branch information
adayoung committed Jan 4, 2025
1 parent 3044996 commit 4c6136b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions static/js/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ var term; // placed here for debugging
term.onWriteParsed(() => term.scrollToTop());
term.write(result);

term.resize(cols, Math.ceil(lines.length * 1.018)); // magic?

document.getElementById("loader").classList.add("d-none");
} else if (document.getElementById("format").value == "html") {
document.getElementById("content-frame").srcdoc = result; // This because Safari doesn't support blobs
Expand Down
2 changes: 1 addition & 1 deletion templates/paste.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@
referrerpolicy="no-referrer">
</script>
{% endif %}
<script src="//{{ static_domain }}/static/js/paste.js?t=20241225"></script>
<script src="//{{ static_domain }}/static/js/paste.js?t=20250104"></script>
{% endblock %}

0 comments on commit 4c6136b

Please sign in to comment.