From 8715b5eb7693290beb5cf800382f0427c28e20bf Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 29 Oct 2009 21:59:55 +0000 Subject: [PATCH] LSdebug : Use LSdefault::log() function when console objects does not exist --- trunk/includes/js/functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/includes/js/functions.js b/trunk/includes/js/functions.js index 10987b64..d9d66471 100644 --- a/trunk/includes/js/functions.js +++ b/trunk/includes/js/functions.js @@ -10,6 +10,10 @@ function LSdebug(arguments) { opera.postError(arguments); return true; } + if (typeof varLSdefault != 'undefined') { + varLSdefault.log(arguments); + return true; + } alert(arguments); }