snowflake/proxy
Arlo Breault fab39ae57c Cleanup lints identified by eslint
Some files were omitted in the .eslintignore, left as an exercise to the
reader.

We probably want to reduce amount of globals overall and use proper es
modules.
2019-07-10 10:58:29 +02:00
..
spec Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
static Remove Modernizr dependency 2019-05-08 11:23:49 -04:00
webext Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
.eslintignore Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
.eslintrc.json Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
broker.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
config.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
init-badge.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
init-node.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
init-webext.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
make.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
package.json Lint with eslint 2019-07-10 10:58:29 +02:00
proxypair.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
README.md Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
shims.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
snowflake.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
ui.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
util.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
websocket.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00

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

npm run build

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/.