Removed "janky" snowflake state machine

The only place it was used was in window.onpageunload, and we have a
better way of determining if the proxy is active there (through the ui).

I also removed that code from the webextension since the proxy won't
stop running unless you close the browser and after testing it looks
like that code doesn't notify the user anyway.
This commit is contained in:
Cecylia Bocovich 2019-10-18 15:10:03 -04:00
parent 338f1792b8
commit 9b470fbe4b
6 changed files with 11 additions and 36 deletions

View file

@ -46,7 +46,7 @@ DebugUI.prototype.$status = null;
Entry point.
*/
var snowflake, query, debug, silenceNotifications, log, dbg, init;
var snowflake, query, debug, ui, silenceNotifications, log, dbg, init;
(function() {
@ -108,7 +108,7 @@ var snowflake, query, debug, silenceNotifications, log, dbg, init;
if (
!silenceNotifications &&
snowflake !== null &&
Snowflake.MODE.WEBRTC_READY === snowflake.state
ui.active
) {
return Snowflake.MESSAGE.CONFIRMATION;
}