Skip to content
Snippets Groups Projects
Arlo Breault's avatar
Arlo Breault authored
So that it compiles to,

```
if (!(name in result)) {
  result[name] = value;
}
```

instead of,

```
if (!(indexOf.call(result, name) >= 0)) {
  result[name] = value;
}
```

since `result` is an object, not an array.
6ab6e489
History

This is the browser proxy component of Snowflake.

Embedding

See https://snowflake.torproject.org/ for more info:

<iframe src="https://snowflake.torproject.org/embed.html" width="88" height="16" frameborder="0" scrolling="no"></iframe>

Building

cake build

(Type cake by itself to see possible commands)

Testing

Unit testing with Jasmine are available with:

npm install
npm test

To run locally, either:

  • Navigate to proxy/build/embed.html
  • For a more fully featured "debug" version, start a webserver and navigate to snowflake.html.

Parameters

With no parameters, snowflake uses the default relay snowflake.bamsoftware.com:443 and uses automatic signaling with the default broker at https://snowflake-broker.bamsoftware.com/.