mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
startup script running fix
This commit is contained in:
parent
fb54678fef
commit
6ed6e27602
2
src/public/javascripts/services/bootstrap.js
vendored
2
src/public/javascripts/services/bootstrap.js
vendored
@ -89,4 +89,4 @@ entrypoints.registerEntrypoints();
|
||||
|
||||
tooltip.setupTooltip();
|
||||
|
||||
$(document).ready(bundle.executeStartupBundles);
|
||||
bundle.executeStartupBundles();
|
@ -1,5 +1,6 @@
|
||||
import treeService from './tree.js';
|
||||
import server from './server.js';
|
||||
import utils from './utils.js';
|
||||
|
||||
function ScriptApi(startNote, currentNote) {
|
||||
const $pluginButtons = $("#plugin-buttons");
|
||||
@ -52,7 +53,8 @@ function ScriptApi(startNote, currentNote) {
|
||||
addButtonToToolbar,
|
||||
activateNote,
|
||||
getInstanceName: () => window.glob.instanceName,
|
||||
runOnServer
|
||||
runOnServer,
|
||||
formatDateISO: utils.formatDateISO
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ async function run(req) {
|
||||
return { executionResult: result };
|
||||
}
|
||||
|
||||
async function getStartupBundles(req) {
|
||||
async function getStartupBundles() {
|
||||
const notes = await labelService.getNotesWithLabel("run", "frontendStartup");
|
||||
|
||||
const bundles = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user