Skip to content

Commit

Permalink
dark mode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbochicchio committed Dec 21, 2023
1 parent 00f9788 commit 8f9208e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ function getPagesConfig() {
),
renderingDelay: getEnvironmentVariable("RENDERING_DELAY", suffix) || 0,
renderingScreenSize: {
height:
getEnvironmentVariable("RENDERING_SCREEN_HEIGHT", suffix) || 800,
height: getEnvironmentVariable("RENDERING_SCREEN_HEIGHT", suffix) || 800,
width: getEnvironmentVariable("RENDERING_SCREEN_WIDTH", suffix) || 600,
},
grayscaleDepth: getEnvironmentVariable("GRAYSCALE_DEPTH", suffix) || 8,
removeGamma: getEnvironmentVariable("REMOVE_GAMMA", suffix) || false,
dither: getEnvironmentVariable("DITHER", suffix) || false,
colorMode: getEnvironmentVariable("COLOR_MODE", suffix) || "GrayScale",
refersColorScheme: getEnvironmentVariable("PREFERS_COLOR_SCHEME", suffix) || "light",
prefersColorScheme: getEnvironmentVariable("PREFERS_COLOR_SCHEME", suffix) || "light",
rotation: getEnvironmentVariable("ROTATION", suffix) || 0,
scaling: getEnvironmentVariable("SCALING", suffix) || 1,
batteryWebHook: getEnvironmentVariable("HA_BATTERY_WEBHOOK", suffix) || null,
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ async function renderAndConvertPageAsync(browser, pageConfig) {
pageCacheTimes[pageConfig.screenShotUrl] = new Date();
}


async function renderUrlToImageAsync(browser, pageConfig, url, path) {
let page;
try {
Expand Down

0 comments on commit 8f9208e

Please sign in to comment.