Commit dcbafb2a authored by nanahira's avatar nanahira

fix

parent 63f4c341
...@@ -103,11 +103,7 @@ function clearreplays() { ...@@ -103,11 +103,7 @@ function clearreplays() {
} }
function packreplays() { function packreplays() {
var ar = document.createElement('ar'); var ar = $("<a href='"+$("#http").val() + "://" + $("#ip").val() + ":" + $("#port").val() + "/api/archive.zip?pass="+$("#password").val()+"' download><span class='glyphicon glyphicon-download-alt'></span></a>");
var url = $("#http").val() + "://" + $("#ip").val() + ":" + $("#port").val() + "/api/archive.zip" + ($("#password").val() ? "?pass="+$("#password").val() : "");
var filename = 'archive.zip';
ar.href = url;
ar.download = filename;
ar.click(); ar.click();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment