mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 17:21:47 +00:00
Norme
This commit is contained in:
parent
b69f67222b
commit
0c95b39c28
1 changed files with 4 additions and 4 deletions
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
var x11 = require('..');
|
var x11 = require('..');
|
||||||
// TODO: move to templates
|
// TODO: move to templates
|
||||||
exports.requireExt = function(display, callback)
|
exports.requireExt = function(display, callback)
|
||||||
{
|
{
|
||||||
var X = display.client;
|
var X = display.client;
|
||||||
X.QueryExtension('XTEST', function(err, ext) {
|
X.QueryExtension('XTEST', function(err, ext) {
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
return callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
|
|
@ -39,7 +39,7 @@ exports.requireExt = function(display, callback)
|
||||||
X.pack_stream.flush();
|
X.pack_stream.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(ext);
|
callback(null, ext);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue