fix: pdf worker
This commit is contained in:
parent
4eb5134b68
commit
3871a03127
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { PDFWorker } from '../dist/cache/worker'
|
|||
|
||||
const scriptUrlFromFunction = (fn: () => any): string => {
|
||||
const blob = new Blob(['(' + fn.toString() + ')()'], { type: 'application/javascript' })
|
||||
return URL.createObjectURL(blob)
|
||||
return window.URL.createObjectURL(blob)
|
||||
}
|
||||
|
||||
export class PDFWorkerHelper extends Worker {
|
||||
|
|
Loading…
Reference in a new issue