diff options
author | Peter Badida <KeyWeeUsr@users.noreply.github.com> | 2024-01-02 17:31:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 17:31:57 +0100 |
commit | 2abfefc18cb3020b68a113d7099950e98709b22b (patch) | |
tree | ef551591620295fe92f87a537c7811af2a3b8b4a /next-gen-gui | |
parent | 86a08eb87df2aa6cf1ab631120a0b918617a98b3 (diff) | |
download | syncthing-2abfefc18cb3020b68a113d7099950e98709b22b.tar.gz syncthing-2abfefc18cb3020b68a113d7099950e98709b22b.zip |
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.
Diffstat (limited to 'next-gen-gui')
-rw-r--r-- | next-gen-gui/src/app/api-utils.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/next-gen-gui/src/app/api-utils.ts b/next-gen-gui/src/app/api-utils.ts index 13d4137c7..a75e216ea 100644 --- a/next-gen-gui/src/app/api-utils.ts +++ b/next-gen-gui/src/app/api-utils.ts @@ -1,6 +1,7 @@ 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'; } |