mirror of
https://github.com/gchq/CyberChef
synced 2025-12-14 23:33:25 +00:00
Merge branch 'master' into v9
This commit is contained in:
@@ -321,7 +321,7 @@ class Manager {
|
||||
callback: callback.bind(scope || this)
|
||||
};
|
||||
|
||||
if (this.dynamicHandlers.hasOwnProperty(eventType)) {
|
||||
if (Object.prototype.hasOwnProperty.call(this.dynamicHandlers, eventType)) {
|
||||
// Listener already exists, add new handler to the appropriate list
|
||||
this.dynamicHandlers[eventType].push(eventConfig);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user