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
3b7575b2
Commit
3b7575b2
authored
Jun 20, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better support console debug under Opera (DragonFly).
parent
2a4e7d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
util.js
include/util.js
+11
-3
No files found.
include/util.js
View file @
3b7575b2
...
...
@@ -13,9 +13,18 @@
// Globals defined here
var
Util
=
{},
$
;
if
((
!
window
.
console
)
||
(
!
/__debug__$/i
.
test
(
document
.
location
.
href
)))
{
// non-debug mode, an empty function
// Debug routines
if
(
typeof
window
.
console
===
"undefined"
)
{
window
.
console
=
window
.
console
||
{};
}
if
(
/__debug__$/i
.
test
(
document
.
location
.
href
))
{
if
(
typeof
window
.
opera
!==
"undefined"
)
{
window
.
console
.
log
=
window
.
opera
.
postError
;
window
.
console
.
warn
=
window
.
opera
.
postError
;
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
)
{};
...
...
@@ -218,4 +227,3 @@ Util.Flash = (function(){
return
{
version
:
parseInt
(
version
[
0
]
||
0
+
'.'
+
version
[
1
],
10
)
||
0
,
build
:
parseInt
(
version
[
2
],
10
)
||
0
};
}());
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