Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
11bb7a4a
Commit
11bb7a4a
authored
Jun 21, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix browser detection code in IE.
parent
3915e536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
util.js
include/util.js
+9
-2
No files found.
include/util.js
View file @
11bb7a4a
...
...
@@ -15,7 +15,10 @@ var Util = {}, $;
// Debug routines
if
(
typeof
window
.
console
===
"undefined"
)
{
window
.
console
=
window
.
console
||
{};
window
.
console
=
{
'log'
:
function
(
m
)
{},
'warn'
:
function
(
m
)
{},
'error'
:
function
(
m
)
{}};
}
if
(
/__debug__$/i
.
test
(
document
.
location
.
href
))
{
if
(
typeof
window
.
opera
!==
"undefined"
)
{
...
...
@@ -24,10 +27,12 @@ if (/__debug__$/i.test(document.location.href)) {
window
.
console
.
error
=
window
.
opera
.
postError
;
}
}
else
{
/*
// non-debug mode, an empty function
window.console.log = function (message) {};
window.console.warn = function (message) {};
window.console.error = function (message) {};
*/
}
// Simple DOM selector by ID
...
...
@@ -207,7 +212,9 @@ Util.Engine = {
'trident'
:
(
function
()
{
return
(
!
window
.
ActiveXObject
)
?
false
:
((
window
.
XMLHttpRequest
)
?
((
document
.
querySelectorAll
)
?
6
:
5
)
:
4
);
}()),
'webkit'
:
(
function
()
{
return
(
navigator
.
taintEnabled
)
?
false
:
((
Util
.
Features
.
xpath
)
?
((
Util
.
Features
.
query
)
?
525
:
420
)
:
419
);
}()),
try
{
return
(
navigator
.
taintEnabled
)
?
false
:
((
Util
.
Features
.
xpath
)
?
((
Util
.
Features
.
query
)
?
525
:
420
)
:
419
);
}
catch
(
e
)
{
return
false
;
}
}()),
//'webkit': (function() {
// return ((typeof navigator.taintEnabled !== "unknown") && navigator.taintEnabled) ? false : ((Util.Features.xpath) ? ((Util.Features.query) ? 525 : 420) : 419); }()),
'gecko'
:
(
function
()
{
return
(
!
document
.
getBoxObjectFor
&&
!
window
.
mozInnerScreenX
)
?
false
:
((
document
.
getElementsByClassName
)
?
19
:
18
);
}())
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment