mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
more changes for scripts - separate API etc.
This commit is contained in:
@@ -29,12 +29,12 @@ const server = (function() {
|
||||
return await call('DELETE', url);
|
||||
}
|
||||
|
||||
async function exec(script, params = []) {
|
||||
async function exec(params, script) {
|
||||
if (typeof script === "function") {
|
||||
script = script.toString();
|
||||
}
|
||||
|
||||
return await post('script/exec', { script: script, params: params });
|
||||
return await post('script/exec/noteId', { script: script, params: params });
|
||||
}
|
||||
|
||||
let i = 1;
|
||||
|
||||
Reference in New Issue
Block a user