aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js
index 5cf699f..69db7ad 100644
--- a/client/client.js
+++ b/client/client.js
@@ -60,7 +60,7 @@ function localStorageSet(key, val) {
}
var ws;
-var myNick = localStorageGet('my-nick');
+var myNick = localStorageGet('my-nick') || '';
var myChannel = window.location.search.replace(/^\?/, '');
var lastSent = [""];
var lastSentPos = 0;