Open NDevTK opened 2 years ago
How are you testing that? Thanks
I have very limited time at the moment... Went to https://ndev.tk/ then in devtools console changed the context from "top" to "sw.js" and did console.log(navigator.userAgent)
The Target Domain may be helpful to automatically attach to new targets not sure if the debug api can use it. https://chromedevtools.github.io/devtools-protocol/1-3/Target/#method-setDiscoverTargets Latest even has https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-setAutoAttach
In the worker context navigator.userAgent still works.