mirror of https://github.com/axmolengine/axmol.git
Merge pull request #16119 from moljac024/v3
Fix browserVersion detection
This commit is contained in:
commit
f8841beeee
|
@ -99,7 +99,7 @@ canvas {
|
||||||
var browserCheck = ua.match(/(qzone|micromessenger|qq)(mobile)?(browser)?\/?([\d.]+)/i);
|
var browserCheck = ua.match(/(qzone|micromessenger|qq)(mobile)?(browser)?\/?([\d.]+)/i);
|
||||||
if (browserCheck) {
|
if (browserCheck) {
|
||||||
var browserVersion = parseFloat(browserCheck[4] || 0);
|
var browserVersion = parseFloat(browserCheck[4] || 0);
|
||||||
if (browserVer < 6.2) {
|
if (browserVersion < 6.2) {
|
||||||
var gameCanvas = document.getElementById("gameCanvas");
|
var gameCanvas = document.getElementById("gameCanvas");
|
||||||
var ctx = gameCanvas.getContext('2d');
|
var ctx = gameCanvas.getContext('2d');
|
||||||
ctx.fillStyle = '#000000';
|
ctx.fillStyle = '#000000';
|
||||||
|
|
Loading…
Reference in New Issue