Hello Experts,
// downloadFile puzzle
function downloadFile(contents, filename) {
if (!filename)
return;
var link = document.createElement(‘a’);
document.body.appendChild(link);
link.href = contents;
link.download = filename;
link.click();
}
being called from :
eventHTMLElem(‘click’, ‘savesnap’, true, function(event) {
downloadFile(appInstance.renderer.domElement.toDataURL(‘image/png’), ‘screenshot.png’);
});
This is working absolutely perfectly everywhere on the PC, macs, android and on IOS safari – but not functioning in chroma and firefox on IOS.
can anyone seem to have a clue what can i be doing wrong? or can change and try to make this work in chroma and firefox in IOS?
the save screenshot popup never appears and the whole app seems to stop working when one run the function on chroma/firefox on IOS. Owrks perfectly well in safari.
Thankx in advance.
Regards,