PREreview / rapid-prereview

An application for rapid, structured reviews of outbreak-related preprints
https://outbreaksci.prereview.org/
MIT License
13 stars 12 forks source link

Fix PDF fallback #152

Open leonardosfl opened 4 years ago

leonardosfl commented 4 years ago

preprintId should be used in the docId attribute, just like here: https://github.com/prereview/rapid-prereview/blob/16e9bfe7ca522edab2bfb4f85b855d37b33313a5/src/components/extension-fallback.js#L67-L68

This was causing an error since the preprintId parameter was incorrect.

a b

I also noticed that the fallback PDF is always being fetched, even if it's not used. Not sure if this is a bug. c

According to this line of code, it should be a fallback, right? https://github.com/prereview/rapid-prereview/blob/16e9bfe7ca522edab2bfb4f85b855d37b33313a5/src/components/extension-fallback.js#L79