mirror of
https://github.com/syncthing/syncthing.git
synced 2025-12-23 14:08:06 -05:00
Making short deviceID length consistent and referencing to protocol file for future-proof edits. Closes #9313.
9 lines
332 B
TypeScript
9 lines
332 B
TypeScript
import { environment } from '../environments/environment'
|
|
|
|
export const deviceID = (): String => {
|
|
// keep consistent with ShortIDStringLength in lib/protocol/deviceid.go
|
|
return environment.production ? globalThis.metadata['deviceIDShort'] : '1234567';
|
|
}
|
|
|
|
export const apiURL: String = '/'
|
|
export const apiRetry: number = 3; |