From 28d195417c9e750a716799bc530d87c97fb0fcdc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 21 Aug 2014 08:12:31 +0000 Subject: [PATCH] fix error happening in browsers not supporting console object --- phpgwapi/js/jsapi/egw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 06d4e5f2f4..0df00e5f37 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -41,7 +41,7 @@ var debug = false; var egw_script = document.getElementById('egw_script_id'); var start_time = (new Date).getTime(); - if(console.timeline) console.timeline("egw"); + if(typeof console != "undefined" && console.timeline) console.timeline("egw"); // Flag for if this is opened in a popup var popup = (window.opener != null); @@ -185,7 +185,7 @@ egw.open_link.apply(egw, egw_popup); } - if(console.timelineEnd) console.timelineEnd("egw"); + if(typeof console != "undefined" && console.timelineEnd) console.timelineEnd("egw"); var end_time = (new Date).getTime(); var gen_time_div = $j('#divGenTime_'+window.egw_appName); if (!gen_time_div.length) gen_time_div = $j('.pageGenTime');