summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-15 08:24:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-15 08:24:19 +0000
commite27bbb37108cb246041e1fab317407406e614777 (patch)
treefa5ed09c5f12cb2c82cf28a83080d80009ce01a0 /roundcubemail/program/js/app.js
parent63c194fb94fcc01575413b689695af540f26a8b2 (diff)
- Move console initialization to rcube.init(), hide console area if browser's console exists, some code cleanup
git-svn-id: https://svn.roundcube.net/trunk@4608 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index fdd9d9c97..f81f8d5ee 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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]);