webaudio-tinysynth icon indicating copy to clipboard operation
webaudio-tinysynth copied to clipboard

Hide log when debug is disabled

Open SuperSodaSea opened this issue 1 year ago • 0 comments

With the default setting, webaudio-tinysynth outputs some log to the console like this:

internalcontext:1
TSDiff:1.404300000011921

This makes the console some kind of "dirty", so I modify the code so that console.log is only called when debug is true.


By the way, it seems that the version in package.json is 1.1.4, but the latest version on npm is still 1.1.3. I'll be happy to see a new version released on npm after merging this PR.

SuperSodaSea avatar Nov 13 '22 17:11 SuperSodaSea