On React-Native, how can I know if \"Debug JS Remotely\" is enabled?
\"Debug JS Remotely\"
I tried looking in RN docs and various NPM packages, but couldn\'t find out how...
A class DedicatedWorkerGlobalScope exists iff remote debugging is enabled (it is the constructor of global object in that case). Thus we can:
DedicatedWorkerGlobalScope
const haveRemoteDev = (typeof DedicatedWorkerGlobalScope) !== 'undefined';