mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
ios safari does not support href download
This commit is contained in:
parent
09b8c34812
commit
4e6ebbc60e
@ -114,7 +114,7 @@ function Stream() {
|
|||||||
var __clickScreenshotButton = function() {
|
var __clickScreenshotButton = function() {
|
||||||
var el_a = document.createElement("a");
|
var el_a = document.createElement("a");
|
||||||
el_a.href = "/streamer/snapshot";
|
el_a.href = "/streamer/snapshot";
|
||||||
el_a.download = "screenshot.jpg";
|
el_a.target = "_blank";
|
||||||
document.body.appendChild(el_a);
|
document.body.appendChild(el_a);
|
||||||
el_a.click();
|
el_a.click();
|
||||||
setTimeout(() => document.body.removeChild(el_a), 0);
|
setTimeout(() => document.body.removeChild(el_a), 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user