Skip to content

Commit

Permalink
remove commented codeblocks and a minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jbweston committed Jun 7, 2018
1 parent e651bc7 commit 186aa92
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/Nord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,13 @@ class Nord extends React.Component {
}

connect(geography) {
const country_info = geography.properties ;
// this.setState({
// status: VPN.connecting,
// country: country_info.NAME,
// host: null,
// }) ;

this.connection.send(JSON.stringify({
method: 'connect',
country: country_info.ISO_A2
country: geography.properties.ISO_A2
})) ;
}

disconnect() {
// this.setState((prev) => ({ ...prev, status: VPN.disconnecting })) ;

this.connection.send(JSON.stringify({
method: 'disconnect'
})) ;
Expand Down

0 comments on commit 186aa92

Please sign in to comment.