[all] fix for win xp support

This commit is contained in:
Julia Radzhabova 2019-05-07 11:54:00 +03:00 committed by Alexey Golubev
parent 3d1e240d4f
commit 3d24f62284
4 changed files with 4 additions and 4 deletions

View file

@ -197,7 +197,7 @@
} else
if (check(/windows\snt/i)) {
var re = /chrome\/(\d+)/i.exec(userAgent);
if (!!re[1] && !(re[1] > 49)) {
if (!!re && !!re[1] && !(re[1] > 49)) {
setTimeout(function () {
document.getElementsByTagName('body')[0].className += "winxp";
},0);

View file

@ -196,7 +196,7 @@
} else
if (check(/windows\snt/i)) {
var re = /chrome\/(\d+)/i.exec(userAgent);
if (!!re[1] && !(re[1] > 49)) {
if (!!re && !!re[1] && !(re[1] > 49)) {
setTimeout(function () {
document.getElementsByTagName('body')[0].className += "winxp";
},0);

View file

@ -196,7 +196,7 @@
} else
if (check(/windows\snt/i)) {
var re = /chrome\/(\d+)/i.exec(userAgent);
if (!!re[1] && !(re[1] > 49)) {
if (!!re && !!re[1] && !(re[1] > 49)) {
setTimeout(function () {
document.getElementsByTagName('body')[0].className += "winxp";
},0);

View file

@ -195,7 +195,7 @@
} else
if (check(/windows\snt/i)) {
var re = /chrome\/(\d+)/i.exec(userAgent);
if (!!re[1] && !(re[1] > 49)) {
if (!!re && !!re[1] && !(re[1] > 49)) {
setTimeout(function () {
document.getElementsByTagName('body')[0].className += "winxp";
},0);