Skip to content

Commit

Permalink
Solucionated bug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushi Hiraga committed Jul 24, 2022
1 parent 9ba3ec1 commit a1dd1ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/main_nhentai.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
function GetMetadataAndTransform() {
function ConvertOriginalToImage(e) {
let type = "jpg";
let orientation = "square";
let orientation = "horizontal";
switch (e.t) {
case "j": type = "jpg"; break;
case "p": type = "png"; break;
case "g": type = "gif"; break;
}

if (e.w < e.h) orientation = "vertical"
else if (e.h < e.w) orientation = "horizontal"


return {
type,
width: e.w,
Expand Down

0 comments on commit a1dd1ec

Please sign in to comment.