RussCoder / djvujs

DjVu.js is a program library for working with .djvu files online without any connection with the server. DjVu.js Viewer is a widget that allows viewing .djvu files right in the browser and can be easily embedded into any web page.
https://djvu.js.org/
Other
182 stars 36 forks source link

Check if filetype/link is openable #85

Closed kizaski closed 1 year ago

kizaski commented 1 year ago

My suggestion is to return the home page with an error message when an unreadable link and file (the file type is different than djvu) is given

RussCoder commented 1 year ago

As I see now, there is no message at all. Just an error in the console. It's not good - I thought there is a message. I will definitely add it, but I don't think the idea to close the current document and return to the initial screen will improve user experience. However, I think this error mostly happens on the initial screen when no document is open and a user drags & drops a file.

RussCoder commented 1 year ago

Fixed in the latest release (viewer v.0.9.1)