Merge pull request #16119 from moljac024/v3

Fix browserVersion detection
This commit is contained in:
Ricardo Quesada 2016-07-14 16:58:33 -07:00 committed by GitHub
commit f8841beeee
1 changed files with 1 additions and 1 deletions

View File

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