From 658ac816c81dbcc3bfcee32eee8f576bb8f0fcda Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 24 Mar 2021 14:14:21 +0100 Subject: [PATCH] Cleanup logoutReload() --- dev/App/User.js | 2 +- dev/bootstrap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/App/User.js b/dev/App/User.js index 07c3290c7..a7f49e11e 100644 --- a/dev/App/User.js +++ b/dev/App/User.js @@ -868,7 +868,7 @@ class AppUser extends AbstractApp { } logout() { - Remote.logout(() => this.logoutReload(0 < (SettingsGet('ParentEmail')||{length:0}).length)); + Remote.logout(() => this.logoutReload((SettingsGet('ParentEmail')||{length:0}).length)); } bootend() { diff --git a/dev/bootstrap.js b/dev/bootstrap.js index f93cc88b2..7c56eb092 100644 --- a/dev/bootstrap.js +++ b/dev/bootstrap.js @@ -29,7 +29,7 @@ export default (App) => { addEventListener('click', ()=>rl.Dropdowns.detectVisibility()); rl.app = App; - rl.logoutReload = () => App && App.logoutReload && App.logoutReload(); + rl.logoutReload = App.logoutReload; rl.i18n = i18n;