mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
various script fixes, including for electron
This commit is contained in:
@@ -6,7 +6,6 @@ const date_notes = require('./date_notes');
|
||||
const Repository = require('./repository');
|
||||
|
||||
function ScriptContext(noteId, dataKey) {
|
||||
this.scriptNoteId = noteId;
|
||||
this.dataKey = protected_session.getDataKey(dataKey);
|
||||
this.repository = new Repository(dataKey);
|
||||
|
||||
@@ -58,7 +57,7 @@ function ScriptContext(noteId, dataKey) {
|
||||
this.updateEntity = this.repository.updateEntity;
|
||||
|
||||
this.log = function(message) {
|
||||
log.info(`Script ${this.scriptNoteId}: ${message}`);
|
||||
log.info(`Script: ${message}`);
|
||||
};
|
||||
|
||||
this.getDateNoteId = date_notes.getDateNoteId;
|
||||
|
||||
Reference in New Issue
Block a user