Skip to content

Commit

Permalink
bin: fix undefined cookies. closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Sep 17, 2014
1 parent 48ef17c commit ff9bdf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (argv.cache) {
server.cache(false)
}

var cookies = argv.cookies
var cookies = argv.cookies || []
if (!Array.isArray(cookies)) cookies = [cookies]
cookies.forEach(function(cookie){
server.cookie(JSON.parse(cookie))
Expand Down

0 comments on commit ff9bdf1

Please sign in to comment.