From e27bbb37108cb246041e1fab317407406e614777 Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 15 Mar 2011 08:24:19 +0000 Subject: - 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 --- roundcubemail/program/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roundcubemail/program/js/app.js') 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]); -- cgit v1.2.3