Fix bug preventing session from returning objects equivalent to «false» in a JS test

This commit is contained in:
Tissevert 2018-12-29 09:14:33 +01:00
parent 0973655f7e
commit cb1a20546f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function Session(async) {
}
function get(path, obj) {
obj = obj || session;
obj = obj == undefined ? session : obj;
if(Array.isArray(path)) {
if(path.length == 0) {
return obj;