mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
AC-301 attempting to prevent content flash between logins
This commit is contained in:
@@ -68,7 +68,7 @@ angular.module('AuthService', ['ngCookies'])
|
|||||||
logout: function() {
|
logout: function() {
|
||||||
// the following puts our primary scope up for garbage collection, which
|
// the following puts our primary scope up for garbage collection, which
|
||||||
// should prevent content flash from the prior user.
|
// should prevent content flash from the prior user.
|
||||||
var scope = angular.element(getElementById('main-view')).scope();
|
var scope = angular.element(document.getElementById('main-view')).scope();
|
||||||
scope.$destroy();
|
scope.$destroy();
|
||||||
|
|
||||||
// but just in case, clear the organization bits
|
// but just in case, clear the organization bits
|
||||||
|
|||||||
Reference in New Issue
Block a user