change: discard decrpecated GLOBAL

This commit is contained in:
Ya Zhuang
2016-05-31 14:13:24 +08:00
parent 207a20adf2
commit 4144beecc1
5 changed files with 32 additions and 22 deletions

View File

@@ -51,7 +51,7 @@ function webInterface(config){
app.get("/fetchBody",function(req,res){
var query = req.query;
if(query && query.id){
GLOBAL.recorder.getDecodedBody(query.id, function(err, result){
global.recorder.getDecodedBody(query.id, function(err, result){
if(err || !result || !result.content){
res.json({});
}else if(result.type && result.type == "image" && result.mime){
@@ -154,4 +154,4 @@ function webInterface(config){
inherits(webInterface, events.EventEmitter);
module.exports = webInterface;
module.exports = webInterface;