fix: use cached headingText variable for consistency

Reuse the previously cached headingText variable instead of accessing
element.innerText again to avoid unnecessary DOM access.
This commit is contained in:
Vinay Keerthi
2026-01-12 16:38:58 +05:30
parent 6e60e3b946
commit 61483c94f0
+1 -1
View File
@@ -29,7 +29,7 @@ export const getHeadingsfromTheArticle = () => {
rows.push({
slug,
title: element.innerText,
title: headingText,
tag: element.tagName.toLowerCase(),
});
});