From c33616cd54665d9d1f7e47e5e2785fc16edaa5eb Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Thu, 21 Jul 2011 14:05:56 +0000 Subject: [PATCH] (Fixes issue 392) removed console.log lines from debug modules JS files. console object is not implemented in IE browser. git-svn-id: https://beef.googlecode.com/svn/trunk@1081 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- .../debug/test_return_ascii_chars/command.js | 19 ++++++------- .../debug/test_return_long_string/command.js | 28 +++++++++---------- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/modules/debug/test_return_ascii_chars/command.js b/modules/debug/test_return_ascii_chars/command.js index 083d74503..d744d5852 100644 --- a/modules/debug/test_return_ascii_chars/command.js +++ b/modules/debug/test_return_ascii_chars/command.js @@ -13,13 +13,12 @@ // See the License for the specific language governing permissions and // limitations under the License. // -beef.execute(function() { - - var str = ''; - for (var i=32; i<=127;i++) str += String.fromCharCode(i); - - console.log(str); - beef.net.send("<%= @command_url %>", <%= @command_id %>, str); - -}); - +beef.execute(function() { + + var str = ''; + for (var i=32; i<=127;i++) str += String.fromCharCode(i); + + beef.net.send("<%= @command_url %>", <%= @command_id %>, str); + +}); + diff --git a/modules/debug/test_return_long_string/command.js b/modules/debug/test_return_long_string/command.js index 2bfe19ccf..a14343538 100644 --- a/modules/debug/test_return_long_string/command.js +++ b/modules/debug/test_return_long_string/command.js @@ -13,18 +13,16 @@ // See the License for the specific language governing permissions and // limitations under the License. // -beef.execute(function() { - - var repeat_value = "<%= @repeat_string %>"; - var iterations = <%= @repeat %>; - var str = ""; - - for (var i = 0; i < iterations; i++) { - str += repeat_value; - } - - console.log(str); - beef.net.send("<%= @command_url %>", <%= @command_id %>, str); - -}); - +beef.execute(function() { + + var repeat_value = "<%= @repeat_string %>"; + var iterations = <%= @repeat %>; + var str = ""; + + for (var i = 0; i < iterations; i++) { + str += repeat_value; + } + beef.net.send("<%= @command_url %>", <%= @command_id %>, str); + +}); +