jrapoport / grpc-web-devtools

Chrome & Firefox Browser extension to aid gRPC-Web development using native gRPC-Web interceptors.
MIT License
29 stars 4 forks source link

Fix error in chrome with undefined tab.id #2

Closed alexrhogue closed 3 years ago

alexrhogue commented 3 years ago

Hey, I was setting up this fork in my project and noticed an error in chrome out of the box. Looks like port.sender.tab was undefined causing the conditional of the ternary operator to throw an error. This one-liner should stop that from happening. I've built and my team is using this version locally.

I'm on OSX Big Sur on Chrome 88.0.4324.192

Screen Shot 2021-02-26 at 12 14 06 PM