There was an error while loading. Please reload this page.
1 parent 7ac9042 commit 24b096eCopy full SHA for 24b096e
1 file changed
src/Util.js
@@ -4,9 +4,11 @@ html2canvas.prototype.log = function(a){
4
5
if (this.opts.logging){
6
7
- var logger = window.console.log || function(log){
8
- alert(log);
9
- };
+ if (window.console && window.console.log){
+ console.log(a);
+ }else{
10
+ alert(a);
11
+ }
12
/*
13
if (typeof(window.console) != "undefined" && console.log){
14
console.log(a);
0 commit comments