I am making a chrome extension and it needs to download a file that has been created using blob I tried this (Making a Chrome Extension download a file):
var aFilePart = ['<a id="a"><b id="b">Hi :) !</b></a>'];
var blob = new Blob(aFilePart, {type : 'text/html'});
var url = URL.createObjectURL(blob);
chrome.downloads.download({
url: url
});
But I get no download going. Help?