Replace is not with isnt - damn you CoffeeScript

This commit is contained in:
Rob H
2014-09-11 17:58:38 +10:00
parent 98f7e58f9d
commit 12f5e48479

View File

@@ -4,7 +4,7 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir
selectedPath: "/login"
constructor: ->
if $location.path() in ["/login", "/signup", "/forgot"] && location.pathname is not '/register/auth'
if $location.path() in ["/login", "/signup", "/forgot"] && location.pathname isnt '/register/auth'
@open $location.path()
else if location.pathname is '/register/auth'
@open '/signup', 'registration_authentication.html'