mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
3f9870b96e
1 changed files with 1 additions and 4 deletions
|
@ -51,10 +51,7 @@ module.exports.loginUser = (userObject, failure=genericFailure, nextURL=null) ->
|
|||
module.exports.logoutUser = ->
|
||||
FB?.logout?()
|
||||
callback = ->
|
||||
if (window.location.href.indexOf("/account/settings") > -1)
|
||||
window.location = '/'
|
||||
else
|
||||
window.location.reload()
|
||||
window.location = '/hoc'
|
||||
res = $.post('/auth/logout', {}, callback)
|
||||
res.fail(genericFailure)
|
||||
|
||||
|
|
Loading…
Reference in a new issue