mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
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).
This commit is contained in:
parent
042c1c0c98
commit
f00dddd09c
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@
|
||||||
window.html10n = (function(window, document, undefined) {
|
window.html10n = (function(window, document, undefined) {
|
||||||
var console = window.console
|
var console = window.console
|
||||||
function interceptConsole(method){
|
function interceptConsole(method){
|
||||||
var original = console[method]
|
|
||||||
|
|
||||||
if (!console) return function() {}
|
if (!console) return function() {}
|
||||||
|
|
||||||
|
var original = console[method]
|
||||||
|
|
||||||
// do sneaky stuff
|
// do sneaky stuff
|
||||||
if (original.bind){
|
if (original.bind){
|
||||||
// Do this for normal browsers
|
// Do this for normal browsers
|
||||||
|
|
Loading…
Reference in a new issue