mirror of
https://github.com/Break27/kvmd.git
synced 2026-02-06 18:36:37 +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 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user