Skip to content

Commit 73c73da

Browse files
committed
🔧 Add event listeners for new settings options
1 parent a5b5038 commit 73c73da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/assets/app.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ class App {
243243
removePageNumbers: true,
244244
removeHeadersFooters: true,
245245
removeDuplicates: true,
246+
removePunctuationLines: true,
247+
preserveParagraphSpacing: true,
246248
});
247249
this.files = [];
248250
this.results = [];
@@ -414,6 +416,20 @@ class App {
414416
}
415417
});
416418
}
419+
if (this.removePunctuationLines) {
420+
this.removePunctuationLines.addEventListener('change', () => {
421+
if (this.files.length > 0) {
422+
this.processFiles();
423+
}
424+
});
425+
}
426+
if (this.preserveParagraphSpacing) {
427+
this.preserveParagraphSpacing.addEventListener('change', () => {
428+
if (this.files.length > 0) {
429+
this.processFiles();
430+
}
431+
});
432+
}
417433
}
418434

419435
handleFiles(files) {

0 commit comments

Comments
 (0)