Browse Source

IE8 bugfix. Fixes #52

JC Brand 11 years ago
parent
commit
3d84b3e7ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -8,7 +8,7 @@
 
 
 // AMD/global registrations
 // AMD/global registrations
 (function (root, factory) {
 (function (root, factory) {
-    if (console===undefined || console.log===undefined) {
+    if (typeof console === "undefined" || typeof console.log === "undefined") {
         console = { log: function () {}, error: function () {} };
         console = { log: function () {}, error: function () {} };
     }
     }
     if (typeof define === 'function' && define.amd) {
     if (typeof define === 'function' && define.amd) {