encryption timeout is now configurable in the db

This commit is contained in:
azivner
2017-09-12 23:04:17 -04:00
parent 3e97cdf085
commit 5b84487aac
7 changed files with 79 additions and 5 deletions

View File

@@ -85,6 +85,7 @@ function setExpandedToServer(note_id, is_expanded) {
let globalVerificationSalt;
let globalEncryptionSalt;
let globalEncryptionSessionTimeout;
$(function(){
$.get(baseUrl + 'tree').then(resp => {
@@ -92,6 +93,7 @@ $(function(){
let startNoteId = resp.start_note_id;
globalVerificationSalt = resp.verification_salt;
globalEncryptionSalt = resp.encryption_salt;
globalEncryptionSessionTimeout = resp.encryption_session_timeout;
if (document.location.hash) {
startNoteId = document.location.hash.substr(1); // strip initial #