mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix: Cloud Storage not working on Kobo Aura ONE (#3077)
* Fix: Cloud storage opens in landscape mode when display is in portrait mode Fix: If return is pressed when in root, koreader crashes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
local url = require('socket.url')
|
||||
local socket = require('socket')
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
local JSON = require("json")
|
||||
local http = require('socket.http')
|
||||
local https = require('ssl.https')
|
||||
local ltn12 = require('ltn12')
|
||||
local socket = require('socket')
|
||||
local url = require('socket.url')
|
||||
local _ = require("gettext")
|
||||
local JSON = require("json")
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
|
||||
local DropBoxApi = {
|
||||
}
|
||||
@@ -95,7 +95,7 @@ function DropBoxApi:listFolder(path, token)
|
||||
local dropbox_file = {}
|
||||
local tag, text
|
||||
local ls_dropbox = self:fetchListFolders(path, token)
|
||||
if ls_dropbox == nil then return false end
|
||||
if ls_dropbox == nil or ls_dropbox.entries == nil then return false end
|
||||
for _, files in ipairs(ls_dropbox.entries) do
|
||||
text = files.name
|
||||
tag = files[".tag"]
|
||||
|
||||
Reference in New Issue
Block a user