js-libp2p
js-libp2p copied to clipboard
fix: error logging in firefox
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