diff options
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.js b/functions.js index 93a36b587..c6f1e0d03 100644 --- a/functions.js +++ b/functions.js @@ -7,7 +7,7 @@ function browser_has_opacity() { navigator.userAgent.match("Opera") != null; } -function exception_error(location, e) { +function exception_error(location, e, silent) { var msg; if (e.fileName) { @@ -23,7 +23,9 @@ function exception_error(location, e) { debug("<b>EXCEPTION: " + msg + "</b>"); - alert(msg); + if (!silent) { + alert(msg); + } } function disableHotkeys() { |