mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Enforce consistent indentation in js
This commit is contained in:
parent
00eb4aadf5
commit
1b14810d34
3 changed files with 10 additions and 4 deletions
|
@ -3,5 +3,11 @@
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended"
|
"extends": "eslint:recommended",
|
||||||
|
"rules": {
|
||||||
|
"indent": ["error", 2, {
|
||||||
|
"SwitchCase": 1,
|
||||||
|
"MemberExpression": 0
|
||||||
|
}]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ class ProxyPair {
|
||||||
channel.onopen = () => {
|
channel.onopen = () => {
|
||||||
log('WebRTC DataChannel opened!');
|
log('WebRTC DataChannel opened!');
|
||||||
if (!this.active) {
|
if (!this.active) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
this.running = true;
|
this.running = true;
|
||||||
snowflake.state = Snowflake.MODE.WEBRTC_READY;
|
snowflake.state = Snowflake.MODE.WEBRTC_READY;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue