chrome.storage.managed.get((policy) => { try { proxyHostConfig = policy[DEFAULT_PROXY_HOST_NAME]; verifiedAccessConfig.host = policy[DEFAULT_VERIFIED_ACCESS_NAME][DEFAULT_PROXY_HOST_PROPERTY_NAME]; verifiedAccessConfig.api_key = policy[DEFAULT_VERIFIED_ACCESS_NAME][DEFAULT_API_KEY_PROPERTY_NAME]; } catch (e) { if (e instanceof TypeError) { // We are in a non-enterprise setting, just log the error and use // defaults. console.log('Extension is not configured, using default values.'); proxyHostConfig = DEFAULT_PROXY_HOST; verifiedAccessConfig.host = DEFAULT_VERIFIED_ACCESS_HOST; } else { throw e; } } displayConfigurationValues(); }); }
And the different values are undefined. I see that a debugger too.
How can I troubleshoot this? Hoping it's just an easy Yves error :)
--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
Thanks. I am not sure where I got my example from. If this is it, definitely an easy Yves error!
{ "type": "object", "properties": { "ProxyHost": { "title": "Proxy hostname.", "description": "Hostname for the proxy server used for user authentication.", "type": "string" }, "VerifiedAccess": { "type": "object", "properties": { "host": { "title": "Verified Access server hostname.", "description": "Hostname for the Verified Access server.", "type": "string" }, "api_key": { "title": "API Key.", "description": "API key to call the Verified Server API.", "type": "string" } } } } }
When the config for, say, VerifiedAccess.host changes, what is the key I will get in the change listener?