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.
This commit is contained in:
Peter Badida
2024-01-02 17:31:57 +01:00
committed by GitHub
parent 86a08eb87d
commit 2abfefc18c
6 changed files with 12 additions and 6 deletions
+1
View File
@@ -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';
}