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

Function getPreferredIcloudSetupUrls

background.js:2837–2848  ·  view source on GitHub ↗
(state = null, error = null)

Source from the content-addressed store, hash-verified

2835}
2836
2837async function getPreferredIcloudSetupUrls(state = null, error = null) {
2838 const preferredLoginUrl = await getPreferredIcloudLoginUrl(error, state);
2839 const preferredHost = normalizeIcloudHost(new URL(preferredLoginUrl).host);
2840 const preferredSetupUrl = getIcloudSetupUrlForHost(preferredHost);
2841 if (!preferredSetupUrl) {
2842 return [...ICLOUD_SETUP_URLS];
2843 }
2844 return [
2845 preferredSetupUrl,
2846 ...ICLOUD_SETUP_URLS.filter((url) => url !== preferredSetupUrl),
2847 ];
2848}
2849
2850function isIcloudLoginRequiredError(error) {
2851 const message = getErrorMessage(error).toLowerCase();

Callers 1

Calls 3

normalizeIcloudHostFunction · 0.85
getIcloudSetupUrlForHostFunction · 0.85

Tested by

no test coverage detected