mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 13:41:11 +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('..');
|
||||
// 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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue