fix: pdf worker

This commit is contained in:
Xmader 2020-12-01 14:10:36 -05:00
parent 4eb5134b68
commit 3871a03127
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {