mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix browser error
This commit is contained in:
parent
379431eefd
commit
c371ffb597
@ -116,7 +116,7 @@ function initAjax() {
|
|||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'x-browser-id': browserId,
|
'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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user