js-libp2p icon indicating copy to clipboard operation
js-libp2p copied to clipboard

fix: error logging in firefox

Open achingbrain opened this issue 1 year ago • 0 comments

Firefox has an error type with a .stack property that is an empty string, so guard on the various properties being empty before logging them.

Change checklist

  • [x] I have performed a self-review of my own code
  • [ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • [ ] I have added tests that prove my fix is effective or that my feature works

achingbrain avatar Oct 12 '24 07:10 achingbrain