summaryrefslogtreecommitdiff
path: root/src/static/js/html10n.js
diff options
context:
space:
mode:
authorOscar Perez <p.oscar@gmail.com>2013-01-07 13:24:40 -0500
committerOscar Perez <p.oscar@gmail.com>2013-01-07 13:24:40 -0500
commitf00dddd09cbeace6d63e3b454491468158f2c30d (patch)
tree5f6d35e113f0d53bd5f3b4773e884a50e84c5270 /src/static/js/html10n.js
parent042c1c0c98ea6244f02f6c07758f6538ff7524c4 (diff)
downloadetherpad-lite-f00dddd09cbeace6d63e3b454491468158f2c30d.zip
Moved console existence check before the variable is used. This was causing a crash in Internet Explorer when the console was not enabled (console is off by default).
Diffstat (limited to 'src/static/js/html10n.js')
-rw-r--r--src/static/js/html10n.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js
index bb4acf81..c45f4b31 100644
--- a/src/static/js/html10n.js
+++ b/src/static/js/html10n.js
@@ -23,10 +23,10 @@
window.html10n = (function(window, document, undefined) {
var console = window.console
function interceptConsole(method){
- var original = console[method]
-
if (!console) return function() {}
+ var original = console[method]
+
// do sneaky stuff
if (original.bind){
// Do this for normal browsers