Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 0098a65

Browse files
committed
Remove a workaround on Electron. See mozilla/pdf.js#12085
1 parent 8e7434d commit 0098a65

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/providers/preview/pdfrenderer_worker.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// We have to remove `process.versions.electron` to work around a bug of PDF.js.
2-
// With `process.versions.electron`, PDF.js misinterprets the context of the runtime as
3-
// the renderer of the browser.
4-
delete (process.versions as any).electron
5-
61
import * as domstubs from '@tamuratak/domstubs'
72
import * as fs from 'fs'
83
import * as path from 'path'

0 commit comments

Comments
 (0)