Skip to content

A platform for community discussion. Free, open, simple.

Fix the build.

Arpit Jaland4d81515d297
diff --git a/app/assets/javascripts/discourse/controllers/preferences/account.js.es6 b/app/assets/javascripts/discourse/controllers/preferences/account.js.es6
index 64b8262f211..2c4a2d1b1ea 100644
--- a/app/assets/javascripts/discourse/controllers/preferences/account.js.es6
+++ b/app/assets/javascripts/discourse/controllers/preferences/account.js.es6
@@ -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) {