Update pixelResizeTool.js

This commit is contained in:
slweeb 2023-11-30 22:22:53 -05:00 committed by GitHub
parent 401310a764
commit 1b087ebeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,6 @@ pixelResizeButton.onclick = function(pixel) {
resizeCanvas(canvas_height,canvas_width, parseFloat(pixelSizeNeeded), true);
};
pixelResizeButton.textContent = "Resize";
document.getElementById("toolControls").appendChild(pixelResizeButton);
window.addEventListener("load",function(){
document.getElementById("toolControls").appendChild(pixelResizeButton);
});