client,server: Enforce min value of max content width (closes #593)

This commit is contained in:
Elian Doran
2024-11-15 22:29:59 +02:00
parent 40c9ef69e7
commit 2260dcefe5
2 changed files with 5 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ function index(req: Request, res: Response) {
isDev: env.isDev(),
isMainWindow: !req.query.extraWindow,
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable(),
maxContentWidth: parseInt(options.maxContentWidth),
maxContentWidth: Math.max(640, parseInt(options.maxContentWidth)),
triliumVersion: packageJson.version,
assetPath: assetPath,
appPath: appPath