Fix bug preventing session from returning objects equivalent to «false» in a JS test
This commit is contained in:
parent
0973655f7e
commit
cb1a20546f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue