diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-15 08:24:19 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-15 08:24:19 +0000 |
| commit | e27bbb37108cb246041e1fab317407406e614777 (patch) | |
| tree | fa5ed09c5f12cb2c82cf28a83080d80009ce01a0 /roundcubemail/program/js/app.js | |
| parent | 63c194fb94fcc01575413b689695af540f26a8b2 (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.js | 8 |
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]); |
