Give jspdf() blob a filename

I am using jspdf() on mobile devices which doesn't work in the same way as on desktops for saving the resulting pdf. I found this workaround on here using a blob - Download using jsPDF on a mobile devices which does create a pdf that opens on a mobile device. My only issue is the file is then called blob - which is not very professional in my view - and if the file is then opened in say ibooks it shows as unknown as there are no file details.

This is the code I am using

if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
{
   var blob = pdf.output();
   window.open(URL.createObjectURL(blob));
}
else
{
   pdf.save('results.pdf');
}

Is there a way to name the blob?


Don't have any answer!