Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yikuansun committed Feb 5, 2022
1 parent bebf724 commit c7644c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions photopea-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ if ((new URLSearchParams(location.search)).get("portal") == "photopea") {
Photopea.runScript(window.parent, "app.echoToOE(app.activeDocument.width.toString()); app.echoToOE(app.activeDocument.height.toString());").then(function(wh) {
document.querySelector("#docWidth").value = wh[0];
document.querySelector("#docHeight").value = wh[1];
canv.width = parseInt(wh[0]);
canv.height = parseInt(wh[1]);
});

0 comments on commit c7644c4

Please sign in to comment.