fix bug with error on 404 redirection

fix warnings
This commit is contained in:
arcan1s
2015-08-09 14:22:34 +03:00
parent 175ca26022
commit 2cd047fabb
8 changed files with 5 additions and 16 deletions

View File

@ -32,10 +32,10 @@ title: arcanis' homepage
<script type="text/javascript">
function redirectpage(dest) {
if (window.location.replace) window.location.replace(dest)
else window.location=dest
else window.location = dest
}
if (document.referrer != "{{ site.url }}/ru/") {
var languageinfo=navigator.language? navigator.language : navigator.userLanguage
var languageinfo = navigator.language ? navigator.language : navigator.userLanguage
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/")
}
</script>