Hacker News new | ask | show | jobs
by CDokolas 3679 days ago
got it working with the following:

window.location=window.URL.createObjectURL(new Blob([localStorage.getItem('hn_saved')],{type:'x-whatever/x-backup'}));

file name is weird (I'm a JS newb!)

1 comments

Thanks for sharing, I figured there would be some type of issue with the download portion in other browsers. I'll see if that works in Chrome too and then maybe edit so more people can use it out of the box.