From 352b7cd07f056a611a04563edd9575463833e977 Mon Sep 17 00:00:00 2001 From: Kosta Xynos Date: Tue, 9 Dec 2014 12:55:10 +0000 Subject: [PATCH] Update command.js Uncommented working code, removed static test variable --- modules/browser/hooked_domain/remove_stuck_iframes/command.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/browser/hooked_domain/remove_stuck_iframes/command.js b/modules/browser/hooked_domain/remove_stuck_iframes/command.js index bc1837fb2..d41b649bd 100644 --- a/modules/browser/hooked_domain/remove_stuck_iframes/command.js +++ b/modules/browser/hooked_domain/remove_stuck_iframes/command.js @@ -21,8 +21,7 @@ beef.execute(function() { var iframe_count = iframes.length; for(var i=0; i", <%= @command_id %>, 'iframe_result=iframe'+i+'_found'); - //iframes[i].parentNode.removeChild(iframes[i]); - document.body.removeChild(iframes[0]); + iframes[i].parentNode.removeChild(iframes[i]); beef.net.send("<%= @command_url %>", <%= @command_id %>, 'iframe_result=iframe'+i+'_removed'); } var iframe_ = "Info: "+ iframe_count +" iframe(s) processed";