mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-24 14:59:51 -04:00
Add .eslintrc.json
And fix issues
This commit is contained in:
1 parent
a9805d3e63
commit
2b51522c43
4 files changed
+29
-5
No files matched your search
+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