瀏覽代碼

IE8 bugfix. Fixes #52

JC Brand 11 年之前
父節點
當前提交
3d84b3e7ae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      converse.js

+ 1 - 1
converse.js

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