Skip to content

Commit

Permalink
frame-on-preview: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
fmiccolis authored and andi34 committed Oct 26, 2022
1 parent da6282a commit 3f3ec14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/applyFrame.php
Expand Up @@ -13,7 +13,7 @@ function applyFrame($sourceResource, $framePath) {
$dst_x = 0;
$dst_y = 0;

if($pic_height == $frame_height) {
if ($pic_height == $frame_height) {
$dst_x = ($pic_width - $frame_width) / 2;
} else {
$dst_y = ($pic_height - $frame_height) / 2;
Expand Down
2 changes: 1 addition & 1 deletion src/js/core.js
Expand Up @@ -1273,7 +1273,7 @@ const photoBooth = (function () {
newWidth = videoEl.videoWidth;
newHeight = videoEl.videoHeight;
}
if(newWidth !== 0 && newHeight !== 0) {
if (newWidth !== 0 && newHeight !== 0) {
pictureFrame.css('width', newWidth);
pictureFrame.css('height', newHeight);
collageFrame.css('width', newWidth);
Expand Down

0 comments on commit 3f3ec14

Please sign in to comment.