Skip to content

Commit

Permalink
1.4.0 πŸŽ‰ πŸŽ‰ πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
obgnail committed Sep 17, 2023
1 parent 93e2192 commit ce9ba7d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugin/collapse_paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,13 @@ class collapseRecorder {
}

collect = () => {
const collapseIdxList = [];
const filepath = this.utils.getFilePath();
this.records[filepath] = [];
this.range((ele, idx) => {
if (ele.classList.contains(this.config.CLASS_NAME)) {
collapseIdxList.push(idx);
this.records[filepath].push(idx);
}
})
if (collapseIdxList.length) {
const filepath = this.utils.getFilePath();
this.records[filepath] = collapseIdxList;
}
}

collapseHeading = filepath => {
Expand Down

0 comments on commit ce9ba7d

Please sign in to comment.