make note paths work better with hoisted note

This commit is contained in:
zadam
2020-04-08 20:38:50 +02:00
parent 6c188982b3
commit 34b8979016
3 changed files with 11 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ const sql = require('./sql');
const cls = require('./cls');
const utils = require('./utils');
const optionService = require('./options');
const port = require('./port');
const Option = require('../entities/option');
const TaskContext = require('./task_context.js');
@@ -55,7 +56,7 @@ async function isDbInitialized() {
async function initDbConnection() {
await cls.init(async () => {
if (!await isDbInitialized()) {
log.info("DB not initialized, please visit setup page to see instructions on how to initialize Trilium.");
log.info(`DB not initialized, please visit setup page` + (utils.isElectron() ? '' : ` - http://[your-server-host]:${await port} to see instructions on how to initialize Trilium.`));
return;
}