mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Add .eslintrc.json
And fix issues
This commit is contained in:
+2
-2
@@ -124,8 +124,8 @@ const getBackground = doc => {
|
||||
const bodyStyle = doc.defaultView.getComputedStyle(doc.body)
|
||||
return bodyStyle.backgroundColor === 'rgba(0, 0, 0, 0)'
|
||||
&& bodyStyle.backgroundImage === 'none'
|
||||
? doc.defaultView.getComputedStyle(doc.documentElement).background
|
||||
: bodyStyle.background
|
||||
? doc.defaultView.getComputedStyle(doc.documentElement).background
|
||||
: bodyStyle.background
|
||||
}
|
||||
|
||||
class View {
|
||||
|
||||
Reference in New Issue
Block a user