ios safari does not support href download

This commit is contained in:
Devaev Maxim 2018-10-09 03:56:10 +03:00
parent 09b8c34812
commit 4e6ebbc60e

View File

@ -114,7 +114,7 @@ function Stream() {
var __clickScreenshotButton = function() {
var el_a = document.createElement("a");
el_a.href = "/streamer/snapshot";
el_a.download = "screenshot.jpg";
el_a.target = "_blank";
document.body.appendChild(el_a);
el_a.click();
setTimeout(() => document.body.removeChild(el_a), 0);