Skip to content

Commit

Permalink
perf: change calc time from 500 to 1
Browse files Browse the repository at this point in the history
There is now a noticeable delay in highlighting phrases when entering a new line in message body.
  • Loading branch information
James Duffy committed Jan 29, 2021
1 parent cfd8eb6 commit 2f0f2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/JustNotSorry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as Util from './util.js';
import WARNINGS from '../warnings/phrases.json';
import domRegexpMatch from 'dom-regexp-match';

const WAIT_TIME_BEFORE_RECALC_WARNINGS = 500;
const WAIT_TIME_BEFORE_RECALC_WARNINGS = 1;

const OPTIONS = {
characterData: false,
Expand Down

0 comments on commit 2f0f2cf

Please sign in to comment.