mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix decryption of protected note revisions
This commit is contained in:
parent
5bda254184
commit
a4c8bdeda2
@ -83,11 +83,11 @@ function decryptNoteRevision(hist) {
|
||||
|
||||
try {
|
||||
if (hist.title) {
|
||||
hist.title = dataEncryptionService.decryptString(dataKey, hist.title);
|
||||
hist.title = dataEncryptionService.decryptString(dataKey, hist.title.toString());
|
||||
}
|
||||
|
||||
if (hist.content) {
|
||||
hist.content = dataEncryptionService.decryptString(dataKey, hist.content);
|
||||
hist.content = dataEncryptionService.decryptString(dataKey, hist.content.toString());
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user