mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
misc
This commit is contained in:
parent
9ed0fadd24
commit
30257fd547
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func textDecode(call otto.FunctionCall) otto.Value {
|
|||
if err != nil {
|
||||
return ReportError("textDecode: could not export argument value:", err.Error())
|
||||
}
|
||||
byteArr, ok := arg.([]byte)
|
||||
byteArr, ok := arg.([]uint8)
|
||||
if !ok {
|
||||
return ReportError("textDecode: single argument must be of type []uint8.", argc)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue