diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-12-03 16:25:09 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-12-03 16:25:09 -0500 |
commit | 5ee15d277b88084242dc2950f6c85e252d13f1b4 (patch) | |
tree | c0b8d2ceca6075af7791f2bedd5a503866642d19 /lib | |
parent | 61da05eb589da322a312837c37c953926961faf7 (diff) |
Change client-side debug to use console.debug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/js/urweb.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 854ebe45..5f1566a3 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -338,6 +338,16 @@ function strftime(fmt, thisTime) // Error handling +function uw_debug(msg) { + try { + console.debug(msg); + } catch (e) { + alert("DEBUG: " + msg); + } + + return 0; +} + function whine(msg) { alert(msg); throw msg; |