I am using the Embark framework demo code and trying to include IPFS storage (not deployment) functionalities to the project. I get an error message when I try to execute the following code in the browser
ipfs.catText("QmZYZyvJeW3eXEiRPS61hvyWSwuHWuSdQRjxmvsD2XqBom",
function(err, res) {
if(err || !res) return console.error(err)
console.log(res);
})
I have included ipfs-js from a local folder with <script src="js/ipfs.js"></script>
The error is shown in browser console Error: Cannot find module 'fs'