mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
fix browser error
This commit is contained in:
@@ -116,7 +116,7 @@ function initAjax() {
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'x-browser-id': browserId,
|
||||
'x-protected-session-id': protected_session ? protected_session.getProtectedSessionId() : null
|
||||
'x-protected-session-id': typeof protected_session !== 'undefined' ? protected_session.getProtectedSessionId() : null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user