mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
use generated salts instead of fixed ones
This commit is contained in:
@@ -83,10 +83,15 @@ function setExpandedToServer(note_id, is_expanded) {
|
||||
});
|
||||
}
|
||||
|
||||
let globalVerificationSalt;
|
||||
let globalEncryptionSalt;
|
||||
|
||||
$(function(){
|
||||
$.get(baseUrl + 'tree').then(resp => {
|
||||
const notes = resp.notes;
|
||||
let startNoteId = resp.start_note_id;
|
||||
globalVerificationSalt = resp.verification_salt;
|
||||
globalEncryptionSalt = resp.encryption_salt;
|
||||
|
||||
if (document.location.hash) {
|
||||
startNoteId = document.location.hash.substr(1); // strip initial #
|
||||
|
||||
Reference in New Issue
Block a user