open window before loading becca

This commit is contained in:
zadam
2022-11-23 23:31:05 +01:00
parent 723db97094
commit 2fbcd9aaf7
8 changed files with 32 additions and 20 deletions

View File

@@ -1,12 +1,12 @@
const scriptService = require('./script');
const cls = require('./cls');
const sqlInit = require('./sql_init');
const config = require('./config');
const log = require('./log');
const sql = require("./sql");
const becca = require("../becca/becca");
const specialNotesService = require("../services/special_notes");
const protectedSessionService = require("../services/protected_session");
const beccaLoader = require("../becca/becca_loader");
function getRunAtHours(note) {
try {
@@ -50,7 +50,7 @@ function runNotesWithLabel(runAttrValue) {
}
}
sqlInit.dbReady.then(() => {
beccaLoader.beccaLoaded.then(() => {
if (!process.env.TRILIUM_SAFE_MODE) {
cls.init(() => specialNotesService.createMissingSpecialNotes());