projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669939b
)
Log to browser error console automatically, if available.
author
Jan Schneider
<jan@horde.org>
Wed, 18 Nov 2009 09:17:13 +0000
(10:17 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 18 Nov 2009 22:24:01 +0000
(23:24 +0100)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
4b9180b
..
768b760
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-38,8
+38,8
@@
KronolithCore = {
debug: function(label, e)
{
- if (!this.is_logout &&
Kronolith.conf.debug
) {
-
alert(label + ': ' + (e instanceof Error ? e.name + '-' + e.message : Object.inspect(e)
));
+ if (!this.is_logout &&
window.console && window.console.error
) {
+
window.console.error(label, Prototype.Browser.Gecko ? e : $H(e).inspect(
));
}
},