From 727138b800ca96bfcb3dc4d97a794e8b6cd5ffbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20Mati=C4=87?= Date: Thu, 14 Jul 2016 08:24:12 +0200 Subject: [PATCH] Fix browserVersion detection Due to typo, the code meant for browser versions below 6.2 would never run. --- templates/js-template-default/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/js-template-default/index.html b/templates/js-template-default/index.html index e484bc17b0..2bcd649cdd 100644 --- a/templates/js-template-default/index.html +++ b/templates/js-template-default/index.html @@ -99,7 +99,7 @@ canvas { var browserCheck = ua.match(/(qzone|micromessenger|qq)(mobile)?(browser)?\/?([\d.]+)/i); if (browserCheck) { var browserVersion = parseFloat(browserCheck[4] || 0); - if (browserVer < 6.2) { + if (browserVersion < 6.2) { var gameCanvas = document.getElementById("gameCanvas"); var ctx = gameCanvas.getContext('2d'); ctx.fillStyle = '#000000';