add comma spacing rule, fix new stat hiding
This commit is contained in:
parent
bc3bdf5fb9
commit
f0eb75f115
2 changed files with 4 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
"error",
|
||||
"always"
|
||||
],
|
||||
"comma-spacing": "error",
|
||||
"semi": [
|
||||
"error",
|
||||
"never"
|
||||
|
|
|
|||
|
|
@ -20,13 +20,15 @@ addStat(stats.dom)
|
|||
addStat(stats2.dom)
|
||||
addStat(statsGl.container)
|
||||
|
||||
if (localStorage.hideStats || isCypress()) {
|
||||
const hideStats = localStorage.hideStats || isCypress()
|
||||
if (hideStats) {
|
||||
stats.dom.style.display = 'none'
|
||||
stats2.dom.style.display = 'none'
|
||||
statsGl.container.style.display = 'none'
|
||||
}
|
||||
|
||||
export const initWithRenderer = (canvas) => {
|
||||
if (hideStats) return
|
||||
statsGl.init(canvas)
|
||||
statsGl.container.style.display = 'flex'
|
||||
statsGl.container.style.justifyContent = 'flex-end'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue