Skip to content

Commit

Permalink
For #380 - update backend API availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed Dec 3, 2015
1 parent d180757 commit 586495b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void run() {
new RequestBuilder(RequestBuilder.GET, "api").sendRequest(null, new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response response) {
ApplicationContext.getInstance().setBackendApiAvailable(response.getStatusCode() == 302);
ApplicationContext.getInstance().setBackendApiAvailable(response.getStatusCode() != 404);
}

@Override
Expand Down

0 comments on commit 586495b

Please sign in to comment.