We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65dae60 commit 401031aCopy full SHA for 401031a
ext/js/templates/anki-template-renderer.js
@@ -814,8 +814,8 @@ export class AnkiTemplateRenderer {
814
_convertGlossaryStructuredContentRecursive(content, structuredContentGenerator) {
815
/** @type {string[]} */
816
const rawGlossaryContent = [];
817
- while (content.length > 0) {
818
- const structuredGloss = content.shift();
+ for (let i = 0; i < content.length; i++) {
+ const structuredGloss = content[i];
819
if (typeof structuredGloss === 'string') {
820
rawGlossaryContent.push(structuredGloss);
821
} else if (Array.isArray(structuredGloss)) {
0 commit comments