add comment

This commit is contained in:
hetima
2026-01-28 15:12:19 +09:00
parent 236be57190
commit 2e07796158
+3
View File
@@ -222,11 +222,13 @@ app.registerExtension({
const texts = text.split('\n');
let lineCount = texts.length;
// read the configuration from the first line
if (lineCount > 1 && this.parseConfig(texts[0])) {
texts.shift();
lineCount--;
}
// match the number of elements
const needs = lineCount - this.container.childElementCount;
if (needs > 0){
for (let index = 0; index < needs; index++) {
@@ -238,6 +240,7 @@ app.registerExtension({
}
}
// normal, dict
for (let index = 0; index < lineCount; index++) {
const div = this.container.children[index];
let realText = texts[index];