add configurable max content width with default value of 1200px.

This commit is contained in:
zadam
2021-10-31 21:55:11 +01:00
parent 5978447185
commit b0c0ed8512
7 changed files with 46 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ const ALLOWED_OPTIONS = new Set([
'dailyBackupEnabled',
'weeklyBackupEnabled',
'monthlyBackupEnabled',
'maxContentWidth'
]);
function getOptions() {

View File

@@ -35,7 +35,8 @@ function index(req, res) {
isDev: env.isDev(),
isMainWindow: !req.query.extra,
extraHoistedNoteId: req.query.extraHoistedNoteId,
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable()
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable(),
maxContentWidth: parseInt(options.maxContentWidth)
});
}