mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Pause translation when appending the outline/attachment/layer trees to the sidebar
Also, pause translation when collapsing/expanding subtrees.
This commit is contained in:
parent
0fc899338c
commit
6b265b3a15
6 changed files with 41 additions and 2 deletions
|
@ -74,6 +74,14 @@ const NullL10n = {
|
|||
async translate(element) {
|
||||
return ConstL10n.instance.translate(element);
|
||||
},
|
||||
|
||||
pause() {
|
||||
ConstL10n.instance.pause();
|
||||
},
|
||||
|
||||
resume() {
|
||||
ConstL10n.instance.resume();
|
||||
},
|
||||
};
|
||||
|
||||
export { NullL10n };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue