MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getConfiguredIcloudHostPreference

Function getConfiguredIcloudHostPreference

icloud-utils.js:17–23  ·  view source on GitHub ↗
(stateOrValue = '')

Source from the content-addressed store, hash-verified

15 }
16
17 function getConfiguredIcloudHostPreference(stateOrValue = '') {
18 const preference = typeof stateOrValue === 'object'
19 ? String(stateOrValue?.icloudHostPreference || '').trim().toLowerCase()
20 : String(stateOrValue || '').trim().toLowerCase();
21 if (!preference || preference === 'auto') return '';
22 return normalizeIcloudHost(preference);
23 }
24
25 function getIcloudLoginUrlForHost(host) {
26 const normalizedHost = normalizeIcloudHost(host);

Callers 3

getMailConfigFunction · 0.85

Calls 1

normalizeIcloudHostFunction · 0.85

Tested by

no test coverage detected