Skip to content

Commit e817858

Browse files
authored
Merge pull request #161 from JackCA/allow-silencing-version-log
allow silencing of version log
2 parents 6d05653 + f2f1cf6 commit e817858

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tone/core/Tone.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,10 @@ define(function(){
806806

807807
Tone.version = "r8-dev";
808808

809-
console.log("%c * Tone.js " + Tone.version + " * ", "background: #000; color: #fff");
809+
// allow optional silencing of this log
810+
if (!window.TONE_SILENCE_VERSION_LOGGING) {
811+
console.log("%c * Tone.js " + Tone.version + " * ", "background: #000; color: #fff");
812+
}
810813

811814
return Tone;
812815
});

0 commit comments

Comments
 (0)