bugfix for filename

This commit is contained in:
加里
2014-10-23 13:31:44 +08:00
parent 1cde59d7d3
commit 89d7d31bfc
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ function Recorder(option){
db;
option = option || {};
if(option.filename){
if(option.filename && typeof option.filename == "string"){
try{
if(fs.existsSync(option.filename)){