mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
ocr wip
This commit is contained in:
@@ -48,6 +48,14 @@ function isEntityEventsDisabled() {
|
||||
return !!namespace.get('disableEntityEvents');
|
||||
}
|
||||
|
||||
function isOcrDisabled() {
|
||||
return !!namespace.get('disableOcr');
|
||||
}
|
||||
|
||||
function disableOcr() {
|
||||
namespace.set('disableOcr', true);
|
||||
}
|
||||
|
||||
function getAndClearEntityChangeIds() {
|
||||
const entityChangeIds = namespace.get('entityChangeIds') || [];
|
||||
|
||||
@@ -92,5 +100,7 @@ module.exports = {
|
||||
reset,
|
||||
getAndClearEntityChangeIds,
|
||||
addEntityChange,
|
||||
ignoreEntityChangeIds
|
||||
ignoreEntityChangeIds,
|
||||
isOcrDisabled,
|
||||
disableOcr
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user