Default dashboard thumbnails to PNG
PNG screenshots are now the default for dashboard previews, with SVG available by setting WEBTERM_SCREENSHOT_MODE=svg. Documentation and tests updated accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -240,8 +240,8 @@ func NewLocalServer(config Config, options ServerOptions) *LocalServer {
|
||||
fontSize = DefaultFontSize
|
||||
}
|
||||
screenshotMode := strings.ToLower(strings.TrimSpace(os.Getenv(ScreenshotModeEnv)))
|
||||
if screenshotMode != "png" {
|
||||
screenshotMode = "svg"
|
||||
if screenshotMode != "svg" {
|
||||
screenshotMode = "png"
|
||||
}
|
||||
apps := append([]App{}, config.Apps...)
|
||||
for _, app := range options.LandingApps {
|
||||
|
||||
Reference in New Issue
Block a user