Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More accurate office file detection. #1

Open
liudonghua123 opened this issue Dec 8, 2020 · 0 comments
Open

More accurate office file detection. #1

liudonghua123 opened this issue Dec 8, 2020 · 0 comments

Comments

@liudonghua123
Copy link

I saw the implementation of pdf viewer chrome extension, it does not only rely on file extension in url but also consider the content-type of the response.

If you are creating a chrome extension. maybe you can use a similar way. 😄

https://github.com/mozilla/pdf.js/blob/b194c820bfbf30734589bb37f7f632bcc7790352/extensions/chromium/pdfHandler.js#L73-L94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant