This commit is contained in:
parent
1c62224b6d
commit
4b990e4649
1 changed files with 24 additions and 0 deletions
24
webapp/web/js/browserUtils.js
Normal file
24
webapp/web/js/browserUtils.js
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
|
var vitro;
|
||||||
|
// vitro == null: true
|
||||||
|
// vitro === null: false (only true if undefined)
|
||||||
|
// typeof vitro == 'undefined': true
|
||||||
|
if (!vitro) {
|
||||||
|
vitro = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
vitro.browserUtils = {
|
||||||
|
|
||||||
|
isIELessThan8: function() {
|
||||||
|
var version;
|
||||||
|
if (navigator.appVersion.indexOf("MSIE") == -1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
version = parseFloat(navigator.appVersion.split("MSIE")[1]);
|
||||||
|
return version < 8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue