mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix version detection without running npm
This commit is contained in:
parent
bc854ee149
commit
df4cf80be4
@ -9,6 +9,7 @@ const log = require('../services/log');
|
|||||||
const env = require('../services/env');
|
const env = require('../services/env');
|
||||||
const utils = require('../services/utils');
|
const utils = require('../services/utils');
|
||||||
const protectedSessionService = require("../services/protected_session");
|
const protectedSessionService = require("../services/protected_session");
|
||||||
|
const packageJson = require('../../package.json');
|
||||||
|
|
||||||
function index(req, res) {
|
function index(req, res) {
|
||||||
const options = optionService.getOptionsMap();
|
const options = optionService.getOptionsMap();
|
||||||
@ -37,7 +38,7 @@ function index(req, res) {
|
|||||||
extraHoistedNoteId: req.query.extraHoistedNoteId,
|
extraHoistedNoteId: req.query.extraHoistedNoteId,
|
||||||
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable(),
|
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable(),
|
||||||
maxContentWidth: parseInt(options.maxContentWidth),
|
maxContentWidth: parseInt(options.maxContentWidth),
|
||||||
triliumVersion: process.env.npm_package_version
|
triliumVersion: packageJson.version
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user