mirror of
https://github.com/coder/code-server.git
synced 2025-07-31 05:54:15 +08:00
Add str param to plural util
Adds a str param to common/util::plural for pluralizing a string. Applies plural to entry.ts.
This commit is contained in:
@ -481,7 +481,7 @@ export class HttpServer {
|
||||
this.proxyDomains = new Set((options.proxyDomains || []).map((d) => d.replace(/^\*\./, "")))
|
||||
this.heart = new Heart(path.join(paths.data, "heartbeat"), async () => {
|
||||
const connections = await this.getConnections()
|
||||
logger.trace(`${connections} active connection${plural(connections)}`)
|
||||
logger.trace(plural(connections, `${connections} active connection`))
|
||||
return connections !== 0
|
||||
})
|
||||
this.protocol = this.options.cert ? "https" : "http"
|
||||
|
Reference in New Issue
Block a user