Merge pull request #5981 from overleaf/jel-synctex-bug

Fix postMessage error for PDF detach SyncTeX

GitOrigin-RevId: 701e92ca3d6bc20a6069d5290ee52d9d2d8f63b4
This commit is contained in:
Jessica Lawshe 2021-12-02 09:18:28 -06:00 committed by Copybot
parent 2772cc878c
commit 994b34bb2d

View file

@ -194,7 +194,7 @@ function PdfSynctexControls() {
setSyncToPdfInFlight(true)
if (clsiServerId) {
params.set('clsiserverid', clsiServerId)
params += `&clsiserverid=${clsiServerId}`
}
getJSON(`/project/${projectId}/sync/code?${params}`, { signal })
@ -233,7 +233,7 @@ function PdfSynctexControls() {
file: getCurrentFilePath(),
line: cursorPosition.row + 1,
column: cursorPosition.column,
})
}).toString()
goToPdfLocation(params)
},