basic implementation of audit logging

This commit is contained in:
azivner
2017-09-28 23:16:36 -04:00
parent 47d296cf12
commit a9698d362f
9 changed files with 65 additions and 11 deletions

View File

@@ -95,6 +95,11 @@ $(function(){
globalEncryptionSessionTimeout = resp.encryption_session_timeout;
globalEncryptedDataKey = resp.encrypted_data_key;
// add browser ID header to all AJAX requests
$.ajaxSetup({
headers: { 'x-browser-id': resp.browser_id }
});
if (document.location.hash) {
startNoteId = document.location.hash.substr(1); // strip initial #
}