We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d95982 commit 3af958fCopy full SHA for 3af958f
template/src/index.js
@@ -78,15 +78,15 @@ function addProgress(config) {
78
return;
79
}
80
81
- const articles = [...document.getElementsByTagName('article')];
+ const articles = [...document.querySelectorAll()('main > article')];
82
83
if(config.progress === 'line') {
84
articles.forEach((article, index) => {
85
const line = document.createElement('div');
86
line.classList.add("progress-line");
87
article.appendChild(line);
88
89
- line.style.backgroundColor = 'var(--primary-color)';
+ line.style.backgroundColor = 'var(--primary-color, #000)';
90
91
line.style.height = '3px';
92
line.style.position = 'absolute';
0 commit comments