wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.

Home Page:https://projects.wojtekmaj.pl/react-pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-pdf not effect in 钉钉browser

day-xue opened this issue · comments

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

Dingtalk browser does not support fetch api, resulting in an error ,(undefined is not an object evaluating body.getReader), what should i do

Steps to reproduce

1.download 钉钉 browser
2.use react-pdf to preview a pdf

Expected behavior

dont use fetch.

Actual behavior

use fetch

Additional information

No response

Environment

  • Browser (if applicable):
  • React-PDF version:
  • React version:
  • Webpack version (if applicable):

This browser is not listed as supported browser in README, so I'm going to close this ticket because it cannot be considered a bug we're not delivering something we didn't promise in the first place. Still, if you have an idea how to improve compatibility without too many changes for other browsers, feel free to contribute.