Skip to content

Commit

Permalink
Merge pull request #118 from cosote/cosote_fix_boolean_config
Browse files Browse the repository at this point in the history
REMOVE_GAMMA and DITHER options were strings and always true in javascript
  • Loading branch information
sibbl authored Apr 14, 2024
2 parents 117ebb7 + 73d2dc7 commit 93b9fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function getPagesConfig() {
width: getEnvironmentVariable("RENDERING_SCREEN_WIDTH", suffix) || 600,
},
grayscaleDepth: getEnvironmentVariable("GRAYSCALE_DEPTH", suffix) || 8,
removeGamma: getEnvironmentVariable("REMOVE_GAMMA", suffix) || false,
removeGamma: getEnvironmentVariable("REMOVE_GAMMA", suffix) === "true" || false,
blackLevel: getEnvironmentVariable("BLACK_LEVEL", suffix) || "0%",
whiteLevel: getEnvironmentVariable("WHITE_LEVEL", suffix) || "100%",
dither: getEnvironmentVariable("DITHER", suffix) || false,
dither: getEnvironmentVariable("DITHER", suffix) === "true" || false,
colorMode: getEnvironmentVariable("COLOR_MODE", suffix) || "GrayScale",
prefersColorScheme: getEnvironmentVariable("PREFERS_COLOR_SCHEME", suffix) || "light",
rotation: getEnvironmentVariable("ROTATION", suffix) || 0,
Expand Down

0 comments on commit 93b9fd6

Please sign in to comment.