binaryage/dirac

fix node.js discovery page

darwin opened this issue · 1 comments

DevTools code uses DevToolsAPI.sendMessageToEmbedder to communicate with embedder. This functionality is optional and DevTools stubs those APIs for web-hosted mode (which is effective when Dirac Extension opens DevTools as a separate web app).

Unfortunately, some new functionality relies on this interaction and fails with stubbed api. Specifically new node discovery page uses setDevicesUpdatesEnabled to receive initial config.

We will have to implement this on our side somehow to keep that functionality working.

See InspectorFrontendHost.js for API initialisation.

This should be fully working with Dirac 1.5.0+ launched via dirac cli.