From b1e7964b4bd0b20bee230dbb25d6b10adc70927e Mon Sep 17 00:00:00 2001 From: daepark Date: Thu, 28 Jan 2010 11:37:36 -0800 Subject: [PATCH] check for window.console --- jquery.postmessage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.postmessage.js b/jquery.postmessage.js index 8c65232..f4da8e0 100644 --- a/jquery.postmessage.js +++ b/jquery.postmessage.js @@ -1,6 +1,7 @@ (function($) { if (!("console" in window)) { + window.console = {}; window.console.log = window.console.warn = window.console.error = window.console.debug = function(){}; }