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