mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Disable text diffing when calculating state deltas
This commit is contained in:
@@ -19,6 +19,10 @@ export const SESSION_COOKIE_NAME = 's'
|
|||||||
|
|
||||||
const stateDiff = createJSONDiffPatch({
|
const stateDiff = createJSONDiffPatch({
|
||||||
objectHash: (obj, idx) => obj._id || `$$index:${idx}`,
|
objectHash: (obj, idx) => obj._id || `$$index:${idx}`,
|
||||||
|
// Disable text diffing, both because it's overkill, and because it can crash with emojis (https://github.com/google/diff-match-patch/issues/68)
|
||||||
|
textDiff: {
|
||||||
|
minLength: Infinity,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
function initApp({
|
function initApp({
|
||||||
|
|||||||
Reference in New Issue
Block a user