From ee6b05f95f8e63a9775e89c23e5a62bda139af91 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 16 Jun 2016 03:59:26 -0500 Subject: [PATCH] Update index.html --- login/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/login/index.html b/login/index.html index 54eadb8..abc79d1 100644 --- a/login/index.html +++ b/login/index.html @@ -12,6 +12,8 @@ * CURRENT VERSION GOES HERE */ +//var windows_version = "1.8.7 (6860)" UNCOMMENT WHEN READY. +var windows_version = "1.8.6 (6157)"; var current_version = "1.8.6 (6157)"; // Minimum recommended alpha version @@ -139,12 +141,18 @@ window.onload = function() document.getElementById('closetoolbar').onclick = toggleToolbar; document.getElementById('opentoolbar').onclick = toggleToolbar; + var cur_ver = current_version; + if( (urlParams["os"].indexOf("Win32")!= -1) || (urlParams["os"].indexOf("Win64")!= -1) ) + { + cur_ver = windows_version; + } + // Current version is newer that user's - if (compareVersion(current_version, urlParams["version"]) > 0) + if (compareVersion(cur_ver, urlParams["version"]) > 0) { if(urlParams["os"].indexOf("Mac OS X") > -1) { - if(clearVersion(current_version) == "1.8.6.6157" && clearVersion(urlParams["version"]) == "1.8.6.6156") + if(clearVersion(cur_ver) == "1.8.6.6157" && clearVersion(urlParams["version"]) == "1.8.6.6156") return; } toolbarShown = true;