mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Ensure that we cancel any pending textLayer
rendering operations when the viewer is closed (issue 7274)
This commit is contained in:
parent
a824c6c4f6
commit
3904be8889
3 changed files with 24 additions and 14 deletions
|
@ -1641,7 +1641,7 @@ function webViewerTextLayerRendered(e) {
|
|||
}
|
||||
//#endif
|
||||
//#if (FIREFOX || MOZCENTRAL)
|
||||
if (pageView.textLayer && pageView.textLayer.textDivs &&
|
||||
if (pageView && pageView.textLayer && pageView.textLayer.textDivs &&
|
||||
pageView.textLayer.textDivs.length > 0 &&
|
||||
!PDFViewerApplication.supportsDocumentColors) {
|
||||
console.error(mozL10n.get('document_colors_not_allowed', null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue