bug fixes

- Fix for FF downloading
- Fix tracking calls
This commit is contained in:
Kieran 2018-11-22 14:52:18 +08:00
parent d8569e5eae
commit e964422096
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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"] : ""
));