I have encountered a strange issue where my code works perfectly in Google Chrome, but throws an error in Internet Explorer specifically at the line mentioned below. Does anyone have any suggestions on what changes need to be made for it to work in IE?
var file = new File([JSON.stringify($localStorage)], "somefile.txt", {type: "text/plain;charset=utf-8"});