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

Commit

Permalink
Remove a workaround on Electron. See mozilla/pdf.js#12085
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Feb 21, 2021
1 parent 0b43caf commit 191e376
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/providers/preview/pdfrenderer_worker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// We have to remove `process.versions.electron` to work around a bug of PDF.js.
// With `process.versions.electron`, PDF.js misinterprets the context of the runtime as
// the renderer of the browser.
delete (process.versions as any).electron

import * as domstubs from '@tamuratak/domstubs'
import * as fs from 'fs'
import * as path from 'path'
Expand Down

0 comments on commit 191e376

Please sign in to comment.