mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
getProps: centralize 2 (#10837)
Centralize and optimize handling document properties.
This commit is contained in:
@@ -213,6 +213,10 @@ function CreDocument:getDocumentFormat()
|
||||
return self._document:getDocumentFormat()
|
||||
end
|
||||
|
||||
function CreDocument:getDocumentProps()
|
||||
return self._document:getDocumentProps()
|
||||
end
|
||||
|
||||
function CreDocument:setupDefaultView()
|
||||
if self.loaded then
|
||||
-- Don't apply defaults if the document has already been loaded
|
||||
|
||||
Reference in New Issue
Block a user