Add .eslintrc.json

And fix issues
This commit is contained in:
John Factotum
2022-11-04 14:12:07 +00:00
committed by GitHub
parent a9805d3e63
commit 2b51522c43
4 changed files with 29 additions and 5 deletions
+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 {