mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
decoupled protected session holder from presentation stuff and similar things
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import protectedSessionService from './protected_session.js';
|
||||
import protectedSessionHolder from './protected_session_holder.js';
|
||||
import utils from './utils.js';
|
||||
|
||||
function getHeaders() {
|
||||
let protectedSessionId = null;
|
||||
|
||||
try { // this is because protected session might not be declared in some cases - like when it's included in migration page
|
||||
protectedSessionId = protectedSessionService.getProtectedSessionId();
|
||||
protectedSessionId = protectedSessionHolder.getProtectedSessionId();
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user