Skip to content

Commit 2bc77a8

Browse files
committed
replaced console.log with console.warn
1 parent 7fdbbbd commit 2bc77a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,13 @@ define(function (require) {
340340
var safeBins = p5.prototype.safeBins = function(bins) {
341341
let safeBins = 1024;
342342
if(typeof(bins)==="string"){
343-
console.log("the value of bins must be power of two and between 16 and 1024");
343+
console.warn("the value of bins must be power of two and between 16 and 1024");
344344
return safeBins
345345
}
346346
if(bins && bins>=16 && bins<=1024 && Math.log2(bins)%1===0 )
347347
return bins;
348348
else {
349-
console.log("the value of bins must be power of two and between 16 and 1024");
349+
console.warn("the value of bins must be power of two and between 16 and 1024");
350350
return safeBins
351351
}
352352

0 commit comments

Comments
 (0)