diff --git a/packages/blaze/preamble.js b/packages/blaze/preamble.js index 8229c20f3a..1928c72359 100644 --- a/packages/blaze/preamble.js +++ b/packages/blaze/preamble.js @@ -22,8 +22,8 @@ Blaze._escape = (function() { Blaze._warn = function (msg) { msg = 'Warning: ' + msg; - if ((typeof 'Log' !== 'undefined') && Log && Log.warn) + if ((typeof Log !== 'undefined') && Log && Log.warn) Log.warn(msg); // use Meteor's "logging" package - else if ((typeof 'console' !== 'undefined') && console.log) + else if ((typeof console !== 'undefined') && console.log) console.log(msg); };