diff --git a/src/hub.js b/src/hub.js index 37f6b9769e236c596712193e92790c2db94c660f..8f8acd0f020e22d81c4951d7d4f1d2b4a96d0738 100644 --- a/src/hub.js +++ b/src/hub.js @@ -163,7 +163,7 @@ async function enterScene(mediaStream, enterInVR) { } setNameTagFromStore(); - store.subscribe(setNameTagFromStore); + store.addEventListener('statechanged', setNameTagFromStore); const avatarScale = parseInt(qs.avatarScale, 10);