mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
parent
d399bf15f5
commit
34f0a964ec
1 changed files with 0 additions and 8 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue