summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-03-15 08:24:19 +0000
committeralecpl <alec@alec.pl>2011-03-15 08:24:19 +0000
commit129aeff1991a37c4877fd6bf03825e084fe821fc (patch)
tree9f43f2e6110559d26e5d177d67bcefd2ed184bdd /program/js/app.js
parent3e63a0b898ecfdca5600ed6c56397048fd463453 (diff)
- Move console initialization to rcube.init(), hide console area if browser's console exists, some code cleanup
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index fdd9d9c97..f81f8d5ee 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -135,6 +135,14 @@ function rcube_webmail()
return;
}
+ // Enable debug console
+ if (!window.console) {
+ console = new rcube_console();
+ }
+ else {
+ $('#console').hide();
+ }
+
// find all registered gui containers
for (var n in this.gui_containers)
this.gui_containers[n] = $('#'+this.gui_containers[n]);