mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
c8f139cced
Refactor "Word Count" modal GitOrigin-RevId: 00561b5b3f8f161238321c440ecde67cd42ece1c
11 lines
288 B
JavaScript
11 lines
288 B
JavaScript
import { getJSON } from '../../../infrastructure/fetch-json'
|
|
|
|
export function fetchWordCount(projectId, clsiServerId, options) {
|
|
let query = ''
|
|
if (clsiServerId) {
|
|
query = `?clsiserverid=${clsiServerId}`
|
|
}
|
|
|
|
return getJSON(`/project/${projectId}/wordcount${query}`, options)
|
|
}
|