diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/pdf-viewer.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/pdf-viewer.service.ts index 2eff8680a..e7655a328 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/pdf-viewer.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/pdf-viewer.service.ts @@ -2,7 +2,6 @@ import { DestroyRef, inject, Injectable, signal, Signal } from '@angular/core'; import { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop'; import { ActivatedRoute } from '@angular/router'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; -import { environment } from '@environments/environment'; import { ErrorService, getConfig, LanguageService } from '@iqser/common-ui'; import { shareDistinctLast, UI_ROOT_PATH_FN } from '@iqser/common-ui/lib/utils'; import { TranslateService } from '@ngx-translate/core'; @@ -147,9 +146,9 @@ export class PdfViewer { async init(htmlElement: HTMLElement) { this.#instance = await this.#getInstance(htmlElement); - if (environment.production) { - this.#instance.Core.setCustomFontURL('https://' + window.location.host + this.#convertPath('/assets/pdftron')); - } + // if (environment.production) { + // this.#instance.Core.setCustomFontURL('https://' + window.location.host + this.#convertPath('/assets/pdftron')); + // } await this.runWithCleanup(async () => { this.#instance.UI.setTheme(this._userPreferenceService.getTheme());