I have created a small DAPP and it works fine with a geth rpc node running. However - I want to make it also compatible with the current MIST version (the November developer release)
It seems like there are different options to include the web3 object. I have chosen this one:
// 2. optional use web3 from mist, OR load if outside of mist if(typeof web3 === 'undefined') web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
So my assumption is: if the DAPP is loaded within MIST web3 does already exist and is not overwritten. However - It still does not work and I get a:
Error: Invalid JSON RPC response: ""
So the question is: what are the steps to make a DAPP compatible with MIST?