Skip to content

Commit

Permalink
Temp fix for bad cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
li-dennis committed Aug 15, 2017
1 parent 5b57205 commit 60e2b6b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Chrome Joule",
"description": "Chrome app to control Joule",
"version": "0.0.1",
"version": "0.0.2",

"browser_action": {
"default_icon": "icon.png",
Expand Down
34 changes: 20 additions & 14 deletions src/CirculatorManagerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,24 @@ class CirculatorManagerView extends React.Component {
return
}

this.state.circulatorManager.initiateCirculatorManager(userInfo)
await this.state.circulatorManager.circulatorScan()
await this.state.circulatorManager.findLastAccessedCirculator()

this.state.circulatorManager.currentCirculatorClient.dataObserver.start().progress((data) => {
// HACK to also triggers an update in client.data
this.setState({ circulatorData: data })
})

this.setState({
userInfo,
authorizing: false,
})
try {
this.state.circulatorManager.initiateCirculatorManager(userInfo)
await this.state.circulatorManager.circulatorScan()
await this.state.circulatorManager.findLastAccessedCirculator()
this.state.circulatorManager.currentCirculatorClient.dataObserver.start().progress((data) => {
// HACK to also triggers an update in client.data
this.setState({ circulatorData: data })
})
this.setState({
userInfo,
authorizing: false,
})
} catch (error) {
console.error("Unknown error ocurred", error)
this.setState({
authorizing: false,
})
}
}

public componentWillMount() {
Expand Down Expand Up @@ -103,7 +108,8 @@ class CirculatorManagerView extends React.Component {
<CardTitle title="Error" />
<CardText>
Please make sure you are logged in
on <a href="http://www.chefsteps.com" target="_blank">chefsteps.com</a> and have cookies enabled
on at <a href="http://www.chefsteps.com" target="_blank">chefsteps.com</a> and
have cookies enabled. You can also try logging out and back in.
</CardText>
</Card>
</div>
Expand Down

0 comments on commit 60e2b6b

Please sign in to comment.