mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
merge: reconcile voice satellite candidate with current main
This commit is contained in:
commit
3385e6b713
251 files changed
+48213
-4281
No files matched your search
@@ -28,15 +28,18 @@ export function keylessHudSummaryResponse(apiKey) {
|
||||
|
||||
/** Return true only for the deliberate, successful no-key capability response. */
|
||||
export function isHudSummaryUnconfigured(status, data) {
|
||||
const keys = data !== null && typeof data === 'object' && !Array.isArray(data)
|
||||
const keys =
|
||||
data !== null && typeof data === 'object' && !Array.isArray(data)
|
||||
? Object.keys(data)
|
||||
: [];
|
||||
return keys.length === 4
|
||||
&& status === 200
|
||||
&& data?.configured === false
|
||||
&& data?.code === HUD_SUMMARY_UNCONFIGURED_CODE
|
||||
&& data?.error === null
|
||||
&& data?.summary === null;
|
||||
return (
|
||||
keys.length === 4 &&
|
||||
status === 200 &&
|
||||
data?.configured === false &&
|
||||
data?.code === HUD_SUMMARY_UNCONFIGURED_CODE &&
|
||||
data?.error === null &&
|
||||
data?.summary === null
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user