forked from Kieran/void.cat
bug fixes
- Fix for FF downloading - Fix tracking calls
This commit is contained in:
parent
d8569e5eae
commit
e964422096
@ -72,7 +72,10 @@ const ViewManager = function () {
|
||||
var dl_link = document.createElement('a');
|
||||
dl_link.href = objurl;
|
||||
dl_link.download = file.name;
|
||||
dl_link.click();
|
||||
dl_link.style.display = "none";
|
||||
let lnk = document.body.appendChild(dl_link);
|
||||
lnk.click();
|
||||
document.body.removeChild(lnk);
|
||||
}
|
||||
}).catch(function (err) {
|
||||
alert(err);
|
||||
|
@ -31,7 +31,7 @@
|
||||
"apiv" => 1,
|
||||
"_id" => isset($_COOKIE["VC:UID"]) ? $_COOKIE["VC:UID"] : uniqid(),
|
||||
"url" => (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",
|
||||
"cip" => _UIP,
|
||||
"cip" => USER_IP,
|
||||
"ua" => isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : "",
|
||||
"urlref" => isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ""
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user