mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Reset search cache when applying highlight
This commit is contained in:
parent
be78740efe
commit
73a08a9e15
@ -648,6 +648,7 @@ class IframeBoss:
|
|||||||
window.getSelection().removeAllRanges()
|
window.getSelection().removeAllRanges()
|
||||||
self.annot_id_uuid_map[annot_id] = data.uuid
|
self.annot_id_uuid_map[annot_id] = data.uuid
|
||||||
self.send_message('annotations', type='highlight-applied', uuid=data.uuid, ok=annot_id is not None, bounds=bounds)
|
self.send_message('annotations', type='highlight-applied', uuid=data.uuid, ok=annot_id is not None, bounds=bounds)
|
||||||
|
reset_find_caches()
|
||||||
else:
|
else:
|
||||||
console.log('Ignoring annotations message to iframe with unknown type: ' + data.type)
|
console.log('Ignoring annotations message to iframe with unknown type: ' + data.type)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user