Skip to content

Commit

Permalink
replaced console.log with console.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
endurance21 committed Apr 22, 2020
1 parent 7fdbbbd commit 2bc77a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ define(function (require) {
var safeBins = p5.prototype.safeBins = function(bins) {
let safeBins = 1024;
if(typeof(bins)==="string"){
console.log("the value of bins must be power of two and between 16 and 1024");
console.warn("the value of bins must be power of two and between 16 and 1024");
return safeBins
}
if(bins && bins>=16 && bins<=1024 && Math.log2(bins)%1===0 )
return bins;
else {
console.log("the value of bins must be power of two and between 16 and 1024");
console.warn("the value of bins must be power of two and between 16 and 1024");
return safeBins
}

Expand Down

0 comments on commit 2bc77a8

Please sign in to comment.