diff options
Diffstat (limited to 'js/user.js')
| -rw-r--r-- | js/user.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -12,7 +12,13 @@ var user = (function(){ } user.load = function(){ user.username = user.getCookie() - el.value = user.username + if (! user.username) { + user.username = 'rando' + randint(9876876) + user.setCookie(user.username) + } + if (!user.username.match(/^rando/)) { + el.value = user.username + } } user.prefs = new function(){} user.prefs.get = function (key){ |
