This commit is contained in:
champii 2014-09-08 17:21:14 +02:00
parent b69f67222b
commit 0c95b39c28

View file

@ -2,10 +2,10 @@
var x11 = require('..');
// TODO: move to templates
exports.requireExt = function(display, callback)
exports.requireExt = function(display, callback)
{
var X = display.client;
X.QueryExtension('XTEST', function(err, ext) {
X.QueryExtension('XTEST', function(err, ext) {
if (!ext.present)
return callback(new Error('extension not available'));
@ -39,7 +39,7 @@ exports.requireExt = function(display, callback)
X.pack_stream.flush();
}
callback(ext);
callback(null, ext);
});
}