After Mist 0.8, I made the following change on my Dapp so that it uses existing web3 connection if connected via Mist.
However, the dapp is failing to connect to network (eg
web3.currentProvider.isConnected() is returning
false) when opened it from Mist.
It can be connected if I kill geth process opened by Mist, and launch geth manually with
--rpc rpccorsdomain=* options enabled, but that defeats the purpose of having Mist browser.
Am I missing anything to make my Dapp "Mist ready"?