Skip to content

Commit

Permalink
add setting: highlight frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed Dec 31, 2023
1 parent 1ff400e commit 02e4ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async function semanticHighlight(callback) {
const results = [];

// Only update results a max of numUpdates times
const N = numUpdates;
const N = inputTexts.length;
const interval = Math.ceil(N / Math.min(numUpdates, N));

for (let i = 0; i < N; i++) {
Expand Down

0 comments on commit 02e4ec5

Please sign in to comment.