self serve pdf.worker.min.js

This commit is contained in:
Stefan
2020-12-31 15:07:35 +01:00
parent 0169d23eae
commit d95dcf1ad4
2 changed files with 7 additions and 2 deletions

View File

@@ -6,8 +6,9 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor () {
(window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js';
}