add comma spacing rule, fix new stat hiding

This commit is contained in:
Vitaly 2023-09-27 22:42:33 +03:00
commit f0eb75f115
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@
"error",
"always"
],
"comma-spacing": "error",
"semi": [
"error",
"never"

View file

@ -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'