This repository was archived by the owner on Feb 28, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1313 "type" : " git" ,
1414 "url" : " git+https://github.com/D01T/Avoido.git"
1515 },
16- "keywords" : [" online" , " web-game" ],
16+ "keywords" : [
17+ " online" ,
18+ " web-game"
19+ ],
1720 "contributors" : [
1821 {
1922 "name" : " Astro36" ,
5053 "socket.io" : " ^2.0.3"
5154 },
5255 "devDependencies" : {
53- "eslint" : " ^4.3.0 " ,
56+ "eslint" : " ^4.4.1 " ,
5457 "eslint-config-airbnb-base" : " ^11.3.1" ,
5558 "eslint-plugin-import" : " ^2.7.0"
5659 }
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ class Game {
3737 // entityName: string
3838 // }
3939 this . connection . send ( 'remove' , {
40- entityName
40+ entityName,
4141 } ) ;
4242 break ;
43+ default :
44+ break ;
4345 }
4446 }
4547 } ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Game = require('./game');
99
1010const root = path . join ( __dirname , '../' ) ;
1111const app = new Koa ( ) ;
12- const port = process . env . PORT || 4000
12+ const port = process . env . PORT || 4000 ;
1313const pug = new Pug ( {
1414 viewPath : path . join ( root , 'view/' ) ,
1515 app,
2424 . use ( async ( ctx , next ) => {
2525 ctx . body = pug . render ( 'index' ) ;
2626 } )
27- . use ( serve ( path . join ( '..' , 'public' ) , ) )
27+ . use ( serve ( path . join ( '..' , 'public' ) ) ) ;
2828
2929app . listen ( port , ( ) => console . log ( `Listening on port ${ port } ` ) ) ;
You can’t perform that action at this time.
0 commit comments