-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Disable developer hash parameters by default #4954
Comments
a few comments here, because we bundle the viewer as a component in our application.
I know that I could patch them during my build, but those 3 make sense as regular options rather than pdfjs-developer options. |
@CodingFabian Why do you need to access the options through the hash parameters to achieve that though? You could (or even should) do either:
This issue isn't about removing any options, rather changing how they are accessed. |
@CodingFabian the api settings will stay without changes. we just need to find a way to make them changable for the users of the pdf.js generic viewer -- configuring the viewer via hash parameter is not a good idea. It might be a good idea to keep the code disabled for development and diagnostics of the issues. |
@yurydelendik Does that mean that you want to keep some of them accessible still, or could we just place all of them inside a block like this:
|
it will be nice to have them handy when pdfBugEnabled is set to true (similar to pdfBug hash tag control) |
Sure, sounds like a great idea! |
ok, if it is just about the hash params, I am fine - I just wanted to point out that the parameters are not all equal, right? for example you do have locale as regular parameter. and maybe disableAutoFetch should be one as well? |
We need to disable developers parameters for the generic or extensions builds. Pretty much all parameters at https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L1736 .
Also we need to add
pdfBugEnabled
to the preferences.EDIT: it's just about not giving control to change those values via hash parameters -- api parameters will stay as is
The text was updated successfully, but these errors were encountered: