mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Edited getPads function to be able to work without callback
This commit is contained in:
parent
c9f137b2e5
commit
e9726890a4
2 changed files with 6 additions and 2 deletions
|
@ -150,7 +150,11 @@ exports.getPad = function(id, text, callback)
|
||||||
|
|
||||||
exports.getPads = function(callback)
|
exports.getPads = function(callback)
|
||||||
{
|
{
|
||||||
|
if(callback != null){
|
||||||
callback(null,padList.getPads());
|
callback(null,padList.getPads());
|
||||||
|
}else{
|
||||||
|
return padList.getPads();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//checks if a pad exists
|
//checks if a pad exists
|
||||||
|
|
|
@ -46,5 +46,5 @@
|
||||||
"engines" : { "node" : ">=0.6.0",
|
"engines" : { "node" : ">=0.6.0",
|
||||||
"npm" : ">=1.0"
|
"npm" : ">=1.0"
|
||||||
},
|
},
|
||||||
"version" : "1.2.3"
|
"version" : "1.2.4"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue