Allow marking code (JavaScript) notes for execution after application loads, closes #19

This commit is contained in:
azivner
2018-01-25 23:49:03 -05:00
parent a42fd9b090
commit 9f3d46ddb1
6 changed files with 47 additions and 8 deletions

View File

@@ -202,4 +202,12 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
return false;
};
$("#logout-button").toggle(!isElectron());
$("#logout-button").toggle(!isElectron());
$(document).ready(() => {
server.get("script/startup").then(scripts => {
for (const script of scripts) {
executeScript(script);
}
});
});