devtools: follow-up rev 759506c7

This commit is contained in:
roytam1 2023-11-30 13:39:15 +08:00
commit aa8671dc1b

View file

@ -310,9 +310,9 @@ NetworkResponseListener.prototype = {
} }
try { try {
let impl = this._wrappedNotificationCallbacks.getInterface(iid); let impl = this._wrappedNotificationCallbacks.getInterface(iid);
if(impl) impl[method].apply(impl, args); impl[method].apply(impl, args);
} catch (e) { } catch (e) {
if (e.result != Cr.NS_ERROR_NO_INTERFACE) { if (e.name != "TypeError" && e.result != Cr.NS_ERROR_NO_INTERFACE) {
throw e; throw e;
} }
} }