menu handlers are not necessary promises
This commit is contained in:
parent
8235af22db
commit
572bab27a0
@ -378,7 +378,10 @@ locale.then(() => {
|
||||
console.error("Invalid Handler for", menuItemId);
|
||||
return;
|
||||
}
|
||||
handler.call(this, info, tab).catch(console.error);
|
||||
const rv = handler.call(this, info, tab);
|
||||
if (rv && rv.catch) {
|
||||
rv.catch(console.error);
|
||||
}
|
||||
}
|
||||
|
||||
async enumulate(action: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user