Skip to content

Commit

Permalink
revert resize function
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmisson committed Dec 13, 2024
1 parent 063d4f0 commit f82a9f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
var $UV = document.getElementById("uv");

function resize() {
$UV.setAttribute("style", "width:" + window.innerWidth + "px; height:" + window.innerHeight + "px;");
$UV.style.width = window.innerWidth + "px";
$UV.style.height = window.innerHeight + "px";
}

addEventListener("resize", function() {
Expand Down

0 comments on commit f82a9f6

Please sign in to comment.