mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fixed logger
This commit is contained in:
parent
7ac9042f33
commit
24b096e113
@ -4,9 +4,11 @@ html2canvas.prototype.log = function(a){
|
||||
|
||||
if (this.opts.logging){
|
||||
|
||||
var logger = window.console.log || function(log){
|
||||
alert(log);
|
||||
};
|
||||
if (window.console && window.console.log){
|
||||
console.log(a);
|
||||
}else{
|
||||
alert(a);
|
||||
}
|
||||
/*
|
||||
if (typeof(window.console) != "undefined" && console.log){
|
||||
console.log(a);
|
||||
|
Loading…
Reference in New Issue
Block a user