News for hackers. Stuff that matters.
Re:IPFS Companion 2.2.0 brings window.ipfs to your Browser by amq on Thursday April 12, 2018 @02:33PM (#16823642)
How do I know that the embedded mode works? It says "IPFS resource loaded via Public Gateway".
Re:IPFS Companion 2.2.0 brings window.ipfs to your Browser by lidel on Thursday April 12, 2018 @03:00PM (#16823882)
Keep in mind that HTTP gateways are provided just for convenience. Due to WebExtension API limitations embedded node can't act as a local HTTP gateway and extension falls back to public gateway. I imagine it was what you were experiencing.

Use window.ipfs property to play with pure IPFS (without HTTP gateway): window.ipfs.id(console.log) window.ipfs.add(Buffer.from('hello')).then(console.log) window.ipfs.cat('/ipfs/QmWfVY9y3xjsixTgbd9AorQxH7VtMpzfx2HaWtsoUYecaX').then((data) => console.log(new String(data))) More info: https://github.com/ipfs-shipyard/ipfs-companion/blob/master/...

Re:IPFS Companion 2.2.0 brings window.ipfs to your Browser by StavrosK on Thursday April 12, 2018 @02:51PM (#16823807)
I think you can click "switch to local node" or something like that. At least that's what I did with my external gateway and it worked and started to redirect locally.