Skip to content

Commit

Permalink
Handles offline server again
Browse files Browse the repository at this point in the history
  • Loading branch information
blackjack75 committed May 2, 2015
1 parent a2bedc0 commit 0b8e3d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/exoshader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ module.exports = Exoshader =
xhr.onreadystatechange = ->
if xhr.readyState is 4
error = false
if xhr.status is 200
this.daddy.checkServer()
if xhr.status is 200
this.daddy.checkServer()
else
error=true

if error
xhr.daddy.statusMessage.textContent = " SHADER: NOSRV :-("

xhr.open "GET", theUrl, true
xhr.send();
Expand Down

0 comments on commit 0b8e3d7

Please sign in to comment.