Remove unused script handler for background colours

This isn't needed anymore as the bundled reader will display the
background colour.
This commit is contained in:
Jackson Harper
2023-05-05 17:30:54 +08:00
parent d399bf15f5
commit 34f0a964ec

View File

@ -115,14 +115,6 @@ fun WebReader(
for (script in webReaderViewModel.javascriptDispatchQueue) {
Log.d("js", "executing script: $script")
it.evaluateJavascript(script, null)
if (script.contains("event.isDark")) {
if (script.contains("event.isDark = 'true'")) {
it.setBackgroundColor(Color.Transparent.hashCode())
} else {
it.setBackgroundColor(Color.White.hashCode())
}
}
}
webReaderViewModel.resetJavascriptDispatchQueue()
}