mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat] Support mimetypes in DocumentRegistry:hasProvider() (#7155)
And make .djvu the canonical extension for DjVu. Fixes #5478.
This commit is contained in:
@@ -149,8 +149,8 @@ function DjvuDocument:drawPage(target, x, y, rect, pageno, zoom, rotation, gamma
|
||||
end
|
||||
|
||||
function DjvuDocument:register(registry)
|
||||
registry:addProvider("djv", "image/vnd.djvu", self, 100)
|
||||
registry:addProvider("djvu", "image/vnd.djvu", self, 100)
|
||||
registry:addProvider("djv", "image/vnd.djvu", self, 100)
|
||||
end
|
||||
|
||||
return DjvuDocument
|
||||
|
||||
Reference in New Issue
Block a user