Log the count only when more than 0 toolbars are added.
This commit is contained in:
parent
223dfa2658
commit
fd4afe9fbc
|
@ -10,7 +10,9 @@ export function runMarkdownToolbarFeature(
|
|||
snippets: Array<Value<MarkdownSnippet>>,
|
||||
) {
|
||||
const count = addToolbarsToTextareas(snippets);
|
||||
log(`Markdown Toolbar: Initialized for ${count} textareas.`);
|
||||
if (count > 0) {
|
||||
log(`Markdown Toolbar: Initialized for ${count} textareas.`);
|
||||
}
|
||||
}
|
||||
|
||||
function addToolbarsToTextareas(
|
||||
|
|
Loading…
Reference in New Issue