fixed name being undefined

This commit is contained in:
Jack 2021-04-13 22:15:29 +01:00
parent 6ec7ea60f3
commit 50f2161c43
2 changed files with 5 additions and 3 deletions

View file

@ -309,9 +309,11 @@ firebase.auth().onAuthStateChanged(function (user) {
$(".pageLogin .preloader").addClass("hidden");
$("#menu .icon-button.account .text").text(displayName);
try {
// try {
if (Tribe.state >= 1) {
Tribe.setName(displayName);
} catch {}
}
// } catch {}
// showFavouriteThemesAtTheTop();
CommandlineLists.updateThemeCommands();

View file

@ -34,7 +34,7 @@ export let pageTransition = false;
export let expectedVersion = "0.9.8";
export let room = undefined;
let name = undefined;
export let name = undefined;
let autoJoin = undefined;
export function setAutoJoin(code) {