Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li authored Jan 3, 2024
1 parent 9ca710f commit f1940ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function getHeightWidth(alt, originalWidth, originalHeight) {
return {width, height};
} else if (alt.match(/\d+/i)) {
const width = parseInt(alt.match(widthReg)[0]);
return {width, height: originalHeight];
}
return {width, height: originalHeight};
}
return {width: originalWidth, height: originalHeight};
}

Expand Down

0 comments on commit f1940ba

Please sign in to comment.