mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
Fix the build.
This commit is contained in:
parent
e4d743910d
commit
d4d81515d2
|
@ -228,17 +228,18 @@ export default Ember.Controller.extend(
|
|||
type: "POST",
|
||||
data: token ? { token_id: token.id } : {}
|
||||
}
|
||||
).then(() => {
|
||||
if (!token) {
|
||||
const redirect = this.siteSettings.logout_redirect;
|
||||
if (Ember.isEmpty(redirect)) {
|
||||
window.location.pathname = Discourse.getURL("/");
|
||||
} else {
|
||||
window.location.href = redirect;
|
||||
)
|
||||
.then(() => {
|
||||
if (!token) {
|
||||
const redirect = this.siteSettings.logout_redirect;
|
||||
if (Ember.isEmpty(redirect)) {
|
||||
window.location.pathname = Discourse.getURL("/");
|
||||
} else {
|
||||
window.location.href = redirect;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(popupAjaxError);
|
||||
})
|
||||
.catch(popupAjaxError);
|
||||
},
|
||||
|
||||
showToken(token) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user