mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
removed dataKey where it's not necessary anymore (use of CLS instead)
This commit is contained in:
@@ -11,7 +11,7 @@ class Note extends Entity {
|
||||
super(repository, row);
|
||||
|
||||
if (this.isProtected) {
|
||||
protected_session.decryptNote(this.dataKey, this);
|
||||
protected_session.decryptNote(this);
|
||||
}
|
||||
|
||||
if (this.isJson()) {
|
||||
@@ -129,7 +129,7 @@ class Note extends Entity {
|
||||
this.content = JSON.stringify(this.jsonContent, null, '\t');
|
||||
|
||||
if (this.isProtected) {
|
||||
protected_session.encryptNote(this.dataKey, this);
|
||||
protected_session.encryptNote(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user