mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-19 23:12:16 +00:00
Merge pull request #155 from overleaf/em-dmp-timeout
Set the diff-match-patch timeout to 100ms
This commit is contained in:
commit
9b561b1763
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
const DMP = require('diff-match-patch')
|
||||
const dmp = new DMP()
|
||||
|
||||
// Do not attempt to produce a diff for more than 100ms
|
||||
dmp.Diff_Timeout = 0.1
|
||||
|
||||
module.exports = {
|
||||
ADDED: 1,
|
||||
REMOVED: -1,
|
||||
|
|
Loading…
Reference in a new issue