Files
syncthing/next-gen-gui/src/app/api-utils.ts
Peter Badida 2abfefc18c gui: Keep short deviceID length consistent + xrefs (fixes #9313) (#9314)
Making short deviceID length consistent and referencing to protocol file
for future-proof edits. Closes #9313.
2024-01-02 17:31:57 +01:00

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;