mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
various script fixes, including for electron
This commit is contained in:
@@ -2,10 +2,10 @@ const log = require('./log');
|
||||
const sql = require('./sql');
|
||||
const ScriptContext = require('./script_context');
|
||||
|
||||
async function executeScript(noteId, dataKey, script, params) {
|
||||
async function executeScript(dataKey, script, params) {
|
||||
log.info('Executing script: ' + script);
|
||||
|
||||
const ctx = new ScriptContext(noteId, dataKey);
|
||||
const ctx = new ScriptContext(dataKey);
|
||||
|
||||
const paramsStr = getParams(params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user