<div dir="ltr">Hi,<div><div><br></div><div>Can you help me to understand the getEnvironment function (<a href="https://github.com/sugarlabs/sugar-web/blob/master/env.js)">https://github.com/sugarlabs/sugar-web/blob/master/env.js)</a>?.</div>
<div><br></div><div><div>My understanding is that if sugar.environment is undefined is because I am in standalone mode, is that right?</div><div><br></div><div>what is the purpose of this handler onEnvironmentSet (<a href="https://github.com/sugarlabs/sugar-web/blob/master/env.js#L22">https://github.com/sugarlabs/sugar-web/blob/master/env.js#L22</a>)?</div>
<div><br></div><div>I am running all tests (with karma but with a Chfome browser, no in sugar environment) and I noted some rare: when is running this test: <a href="https://github.com/sugarlabs/sugar-web/blob/master/test/envSpec.js">https://github.com/sugarlabs/sugar-web/blob/master/test/envSpec.js</a> is <span style="color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;white-space:pre-wrap">SUCCESS</span>, I can't underestand why.<br>
<div><div><br></div><div>Regards!<br clear="all"><div><br></div>-- <br>Roger<div><br><div><a href="http://activitycentral.com/" target="_blank">Activity Central</a></div></div>
</div></div></div></div></div></div>