We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbe4a8 commit 3ffcd60Copy full SHA for 3ffcd60
public/local.js
@@ -6,6 +6,7 @@ var socket = io();
6
7
// SAVING LOCAL STATE -- GLOBAL VARS (ugh)
8
var currentPlayerId;
9
+var userName;
10
var nextPlayerId;
11
var animationId;
12
var currentGist; // gistData: {id, url, owner}
@@ -128,6 +129,9 @@ function handleUserLogin (userData) {
128
129
console.log('**************** Logged in! GitHub User Data: *********************');
130
console.log(userData);
131
132
+ // Save user's GitHub name to local game state
133
+ userName = userData.login;
134
+
135
// Update views with user's GitHub name and avatar
136
updateLoggedInView(userData.login, userData.avatar_url);
137
0 commit comments