check for window.console and window.console.log

This commit is contained in:
j 2014-04-24 13:48:00 +00:00
parent 9129908cf8
commit ef5a51d6bc

View file

@ -207,7 +207,7 @@ Ox.Log = (function() {
args.unshift(
Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().slice(-3)
);
window.console && window.console.log.apply(window.console, args);
window.console && window.console.log && window.console.log.apply(window.console, args);
ret = args.join(' ');
}
return ret;