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;