Skip to content

Commit

Permalink
update readme, add download stats
Browse files Browse the repository at this point in the history
  • Loading branch information
floatinghotpot committed Jun 8, 2015
1 parent 7f42931 commit 47ecc1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# casino-server #

[![npm version](https://badge.fury.io/js/casino-server.svg)](http://badge.fury.io/js/casino-server)

[![Build Status](https://travis-ci.org/floatinghotpot/casino-server.svg)](https://travis-ci.org/floatinghotpot/casino-server)

[![NPM](https://nodei.co/npm-dl/casino-server.png?height=3)](https://nodei.co/npm/casino-server/)

An online poker game server powered by redis, node.js and socket.io

![A](https://github.com/floatinghotpot/casino-server/raw/master/wwwsrc/img/4_14.png) ![A](https://github.com/floatinghotpot/casino-server/raw/master/wwwsrc/img/3_14.png)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "casino-server",
"version": "0.1.3",
"version": "0.1.4",
"description": "An multi-rule scalable online poker game server powered by redis, node.js and socket.io",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions wwwsrc/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ function login(u, p) {
passwd: p
}, function(err,ret){
if(err) {
localStorage.removeItem('x_userid');
localStorage.removeItem('x_passwd');
echo(ret);
socket.emit('hello', {});
} else {
Expand All @@ -510,10 +512,6 @@ function login(u, p) {
}
}

}, function(err){
localStorage.removeItem('x_userid');
localStorage.removeItem('x_passwd');
echo(err);
});
}

Expand Down

0 comments on commit 47ecc1c

Please sign in to comment.