Skip to content

Commit

Permalink
don't print sendResponse in debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Dec 24, 2024
1 parent 66a0288 commit 0e018f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function patchEventListener(obj, name, fn) {
case 'addListener':
res = (cb, ...opts) =>
fn.call(obj, (...args) => {
console.log(name, ...args);
console.log(name, ...name === 'onMessage' ? args.slice(0, 2) : args);
return cb(...args);
}, ...opts);
origListeners.set(fn, res);
Expand Down

0 comments on commit 0e018f8

Please # to comment.