Fix https in statistic. Added auto redirect to https for en/wiki

This commit is contained in:
Unick Soft
2019-04-28 10:42:15 +02:00
parent 168f9d744e
commit 479282d0c1
2 changed files with 6 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ var userAction = function(str)
if (typeof window.yaCounter25827098 !== "undefined")
{
console.log(g_language + "/" + str);
window.yaCounter25827098.hit("http://" + window.location.hostname + (g_language != "ru" ? "/" + g_language : "") + "/UserAction#" + str);
window.yaCounter25827098.hit(window.location.protocol + "//" + window.location.hostname + (g_language != "ru" ? "/" + g_language : "") + "/UserAction#" + str);
}
else if (!waitCounter)
{