mirror of
https://github.com/readest/readest.git
synced 2026-04-30 12:31:02 +00:00
This commit is contained in:
parent
6b290f09f5
commit
4f6f45fe8a
10 changed files with 47 additions and 14 deletions
|
|
@ -296,7 +296,11 @@ class NativeBridgePlugin(private val activity: Activity): Plugin(activity) {
|
|||
.trim()
|
||||
fontList.add(fontName)
|
||||
}
|
||||
ret.put("fonts", JSONArray(fontList))
|
||||
var fontDict = JSObject()
|
||||
for (fontName in fontList) {
|
||||
fontDict.put(fontName, fontName)
|
||||
}
|
||||
ret.put("fonts", fontDict)
|
||||
} catch (e: Exception) {
|
||||
ret.put("error", e.message)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue