mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5173] - removed takeUntil as it was pointless and preventing the… (#7333)
* [ADF-5173] - removed takeUntil as it was pointless and preventing the pdfjs to be closed correctly * [ACA-3847] - fixed unused import
This commit is contained in:
@@ -34,7 +34,7 @@ import { PdfPasswordDialogComponent } from './pdf-viewer-password-dialog';
|
||||
import { AppConfigService } from './../../app-config/app-config.service';
|
||||
import { PDFDocumentProxy, PDFSource } from 'pdfjs-dist';
|
||||
import { Subject } from 'rxjs';
|
||||
import { catchError, delay, takeUntil } from 'rxjs/operators';
|
||||
import { catchError, delay } from 'rxjs/operators';
|
||||
|
||||
declare const pdfjsLib: any;
|
||||
declare const pdfjsViewer: any;
|
||||
@@ -121,7 +121,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
this.onPageRendered = this.onPageRendered.bind(this);
|
||||
this.randomPdfId = this.generateUuid();
|
||||
this.currentScale = this.getUserScaling();
|
||||
this.pdfjsWorkerDestroy$.pipe(catchError(() => null), delay(700), takeUntil(this.onDestroy$)).subscribe(() => this.destroyPdJsWorker());
|
||||
this.pdfjsWorkerDestroy$.pipe(catchError(() => null), delay(700)).subscribe(() => this.destroyPdJsWorker());
|
||||
}
|
||||
|
||||
getUserScaling(): number {
|
||||
|
Reference in New Issue
Block a user