Closed r-pankevicius closed 4 years ago
I have implemented the similar functionality for the extension https://github.com/RussCoder/djvujs/blob/master/extension/background.js#L147
But not on the viewer side.
Also for now you have an option to load a file yourself and then feed the ArrayBuffer to the viewer with a filename. Although, you will not be able to see the loading progress.
You can try to add it yourself, it is loaded inside sagas. Or wait till the weekend or the next week.
I don't need to wait till the weekend because it works in my fork. If you'd like I can arrange a pull request for https://github.com/r-pankevicius/djvujs/commit/9a9a4221588d77eff1c2fb2b3bcfaddca0759f7d and https://github.com/r-pankevicius/djvujs/commit/8fd97578f4c02336096b1392aa33a790f4d37c9a solve the issue.
Steps to reproduce in development environment, assuming you have built the project).
First set up environment to get djvu files with Content-Disposition headers. Copy viewer/craco.config.js from https://github.com/r-pankevicius/djvujs/commit/9a9a4221588d77eff1c2fb2b3bcfaddca0759f7d Now we have an devServer endpoint /djvufile?...arguments... to test different Content-Disposition headers.
To reproduce the issue:
Issues: