summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-10-09 03:56:10 +0300
committerDevaev Maxim <[email protected]>2018-10-09 03:56:10 +0300
commit4e6ebbc60e349ca82b45bdaa8b2109400265b461 (patch)
tree9a6a59ec7363c3673c6cdbb80a367fac4be5912b /web
parent09b8c34812bbd3347b941dbb66b96c6212ef571a (diff)
ios safari does not support href download
Diffstat (limited to 'web')
-rw-r--r--web/js/stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/stream.js b/web/js/stream.js
index c632766d..10388ca1 100644
--- a/web/js/stream.js
+++ b/web/js/stream.js
@@ -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);