feat(desktop): unified diff toggle
This commit is contained in:
parent
ebf5ad25c5
commit
2ec6a21cc0
9 changed files with 91 additions and 31 deletions
|
|
@ -13,7 +13,7 @@ export function Diff<T>(props: SSRDiffProps<T>) {
|
|||
let container!: HTMLDivElement
|
||||
let fileDiffRef!: HTMLElement
|
||||
const [local, others] = splitProps(props, ["before", "after", "class", "classList", "annotations"])
|
||||
const workerPool = useWorkerPool()
|
||||
const workerPool = useWorkerPool(props.diffStyle)
|
||||
|
||||
let fileDiffInstance: FileDiff<T> | undefined
|
||||
const cleanupFunctions: Array<() => void> = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue