senny / pdfjs_viewer-rails

PDF.js viewer packaged as a Rails engine.
MIT License
114 stars 174 forks source link

Add way to configure verbosity #10

Closed shanear closed 7 years ago

shanear commented 8 years ago

We're running some automated tests via PhantomJS using the PDF viewer, and it'd be nice to be able to turn off the "Warning: Setting up fake worker." output on every test run.

PDFJS allows you to configure it's verbosity, but it's difficult to configure it via the .pdfjs_viewer helper method. I'm thinking the best way to do that might be to add a verbosity: option.

Thoughts?

senny commented 8 years ago

@shanear sorry for the extremely long delay. This seems like a reasonable addition, do you want to give it a go?