exo_browser
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -91,3 +91,3 @@ /* | ||
my.off_the_record = | ||
(typeof spec.off_the_record === 'undefined') ? spec.off_the_record : true; | ||
(typeof spec.off_the_record === 'boolean') ? spec.off_the_record : true; | ||
my.path = spec.path || exports.data_path('exo_browser_api'); | ||
@@ -279,24 +279,33 @@ | ||
mkdirp(my.path, function(err) { | ||
if(err) { | ||
/* We can't do much more than throwing the error as there is no */ | ||
/* handler to pass it to. It would be a bad idea to start the browser */ | ||
/* without a proper data directory setup. */ | ||
throw err; | ||
var create = function() { | ||
if(my.internal) { | ||
return finish(); | ||
} | ||
else { | ||
if(my.internal) { | ||
_exo_browser._createExoSession({ | ||
path: my.path, | ||
off_the_record: my.off_the_record | ||
}, function(s) { | ||
my.internal = s; | ||
return finish(); | ||
}); | ||
} | ||
}; | ||
if(!my.off_the_record) { | ||
mkdirp(my.path, function(err) { | ||
if(err) { | ||
/* We can't do much more than throwing the error as there is no */ | ||
/* handler to pass it to. It would be a bad idea to start the browser */ | ||
/* without a proper data directory setup. */ | ||
throw err; | ||
} | ||
else { | ||
_exo_browser._createExoSession({ | ||
path: my.path, | ||
off_the_record: my.off_the_record | ||
}, function(s) { | ||
my.internal = s; | ||
return finish(); | ||
}); | ||
create(); | ||
} | ||
} | ||
}); | ||
}); | ||
} | ||
else { | ||
create(); | ||
} | ||
}; | ||
@@ -303,0 +312,0 @@ |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"dependencies": { | ||
@@ -12,0 +12,0 @@ "async": "0.2.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33929
1139