From 417200b43345ba91ffcf02114e9420a6f8fb269d Mon Sep 17 00:00:00 2001
From: Brian Peiris <brianpeiris@gmail.com>
Date: Thu, 2 Nov 2017 14:24:21 -0700
Subject: [PATCH] enable stats by default unless disabled with query parameter

---
 src/index.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/index.js b/src/index.js
index 0c43229b2..195e09145 100644
--- a/src/index.js
+++ b/src/index.js
@@ -31,6 +31,10 @@ window.onSceneLoad = function() {
     scene.setAttribute("networked-scene", "room", parseInt(qs.room));
   }
 
+  if (!qs.stats || !/off|false|0/.test(qs.stats)) {
+    scene.setAttribute('stats', true);
+  }
+
   const username = promptForName(); // promptForName is blocking
   const myNametag = document.querySelector("#player-rig .nametag");
   myNametag.setAttribute("text", "value", username);
-- 
GitLab