Add .eslintrc.json

And fix issues
This commit is contained in:
John Factotum authored and GitHub committed 2022-11-04 14:12:07 +00:00
1 parent a9805d3e63
commit 2b51522c43
4 files changed
+29 -5

No files matched your search

+2 -2
View File
@@ -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 {