Encountering a unique issue with IE related to this function:
function downloadFileFromUserControl(filename) {
var name = filename.split("/");
var fName = name[name.length - 1];
console.log("IE seems sleepy during this request");
var link = document.createElement('a');
link.download = fName;
link.href = filename;
link.click();
console.log("Looks like IE decided to take a nap again");
}
This function works flawlessly in Chrome, allowing me to download PDF files from hyperlinks without any errors, just some messages in the console.
If anyone knows of additional code needed to make this work smoothly in IE as well, I would appreciate the help. Thanks!