mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
Allow marking code (JavaScript) notes for execution after application loads, closes #19
This commit is contained in:
@@ -113,4 +113,8 @@ async function stopWatch(what, func) {
|
||||
console.log(`${what} took ${tookMs}ms`);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
function executeScript(script) {
|
||||
eval("(async function() {" + script + "})()");
|
||||
}
|
||||
Reference in New Issue
Block a user