mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
fixes and polish
This commit is contained in:
@@ -9,6 +9,14 @@ function wrap(callback) {
|
||||
return async () => await init(callback);
|
||||
}
|
||||
|
||||
function get(key) {
|
||||
return namespace.get(key);
|
||||
}
|
||||
|
||||
function set(key, value) {
|
||||
namespace.set(key, value);
|
||||
}
|
||||
|
||||
function getSourceId() {
|
||||
return namespace.get('sourceId');
|
||||
}
|
||||
@@ -52,6 +60,8 @@ function setEntityToCache(entityName, entityId, entity) {
|
||||
module.exports = {
|
||||
init,
|
||||
wrap,
|
||||
get,
|
||||
set,
|
||||
namespace,
|
||||
getSourceId,
|
||||
getLocalNowDateTime,
|
||||
@@ -62,4 +72,4 @@ module.exports = {
|
||||
addSyncRow,
|
||||
getEntityFromCache,
|
||||
setEntityToCache
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user