Skip to content

Commit

Permalink
Less dependencies for screenshot getter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed May 2, 2012
1 parent b40e03d commit ddcd6bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/prey/plugins/providers/lan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ var Lan = function(){
var nodes = [];
var skip = ['WORKGROUP', '..__MSBROWSE__.'];

Network.get('active_network_interface', function(nic){
Network.get('active_network_interface', function(err, nic){

if(err) return callback(err);

var command = 'nmblookup -A ' + nic.broadcast_address;

Expand Down
6 changes: 3 additions & 3 deletions lib/prey/plugins/providers/screenshot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
var common = require('./../../../common'),
tempfile_path = common.helpers.tempfile_path,
util = require('util'),
path = require('path'),
exec = require('child_process').exec,
path_exists = require('path').exists,
// exec = require('child_process').exec,
os_functions = require('./platform/' + common.os_name),
Getters = require('./../../../getters');

Expand All @@ -31,7 +31,7 @@ var Screenshot = function(){

if(err) return callback(err);

path.exists(file_path, function(exists){
path_exists(file_path, function(exists){
if(exists)
callback(null, {file: file_path, content_type: 'image/jpeg'});
else
Expand Down

0 comments on commit ddcd6bd

Please sign in to comment.