startup script running fix

This commit is contained in:
azivner
2018-04-04 23:51:47 -04:00
parent fb54678fef
commit 6ed6e27602
3 changed files with 5 additions and 3 deletions

View File

@@ -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
}
}