add a js debugger breakpoint into 'unknown hook' error case
This commit is contained in:
parent
03e180f597
commit
9fde200f70
@ -89,6 +89,7 @@ window.runHooks = function(event, data) {
|
|||||||
window.addHook = function(event, callback) {
|
window.addHook = function(event, callback) {
|
||||||
if(VALID_HOOKS.indexOf(event) === -1) {
|
if(VALID_HOOKS.indexOf(event) === -1) {
|
||||||
console.error('addHook: Unknown event type: ' + event + ' - ignoring');
|
console.error('addHook: Unknown event type: ' + event + ' - ignoring');
|
||||||
|
debugger;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user