mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: added removeEventListener builtin function (closes #1139)
This commit is contained in:
parent
a7e4572416
commit
169b0cb8c9
2 changed files with 85 additions and 26 deletions
|
@ -330,6 +330,7 @@ func (s *Session) Start() error {
|
|||
plugin.Defines["saveJSON"] = jsSaveJSONFunc
|
||||
plugin.Defines["saveToFile"] = jsSaveToFileFunc
|
||||
plugin.Defines["onEvent"] = jsOnEventFunc
|
||||
plugin.Defines["removeEventListener"] = jsRemoveEventListenerFunc
|
||||
plugin.Defines["session"] = s
|
||||
|
||||
// load the script here so the session and its internal objects are ready
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue