oddsdk / odd-devtools

An extension to help developers use the Webnative SDK
Apache License 2.0
2 stars 1 forks source link

Add background message reception #11

Closed bgins closed 1 year ago

bgins commented 1 year ago

Summary

Problem

The current implementation of the browser extension only receives messages from Webnative when a developer has the Webnative devtools panel open.

Impact

Developers will miss messages if they navigate to another panel in the devtools interface.

Solution

Move message reception to the devtools page.

Detail

The devtools page is kept alive while the developer has the devtools open. Handling messages here will let developers navigate around the devtools interface freely.

This change will require an update to when we connect and disconnect from Webnative. We have a couple of options: